-rw-r--r-- | core/launcher/launcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 7887704..984a57d 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -719,63 +719,63 @@ void Launcher::documentRemoved( const DocLnk& doc ) | |||
719 | 719 | ||
720 | void Launcher::documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc ) | 720 | void Launcher::documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc ) |
721 | { | 721 | { |
722 | documentRemoved( oldDoc ); | 722 | documentRemoved( oldDoc ); |
723 | documentAdded( newDoc ); | 723 | documentAdded( newDoc ); |
724 | } | 724 | } |
725 | 725 | ||
726 | void Launcher::allDocumentsRemoved() | 726 | void Launcher::allDocumentsRemoved() |
727 | { | 727 | { |
728 | tabs->docView()->removeAllItems(); | 728 | tabs->docView()->removeAllItems(); |
729 | } | 729 | } |
730 | 730 | ||
731 | void Launcher::applicationStateChanged( const QString& name, ApplicationState state ) | 731 | void Launcher::applicationStateChanged( const QString& name, ApplicationState state ) |
732 | { | 732 | { |
733 | tb->setApplicationState( name, state ); | 733 | tb->setApplicationState( name, state ); |
734 | } | 734 | } |
735 | 735 | ||
736 | void Launcher::applicationScanningProgress( int percent ) | 736 | void Launcher::applicationScanningProgress( int percent ) |
737 | { | 737 | { |
738 | switch ( percent ) { | 738 | switch ( percent ) { |
739 | case 0: { | 739 | case 0: { |
740 | for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { | 740 | for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { |
741 | tabs->view( (*it) )->setUpdatesEnabled( FALSE ); | 741 | tabs->view( (*it) )->setUpdatesEnabled( FALSE ); |
742 | tabs->view( (*it) )->setSortEnabled( FALSE ); | 742 | tabs->view( (*it) )->setSortEnabled( FALSE ); |
743 | } | 743 | } |
744 | break; | 744 | break; |
745 | } | 745 | } |
746 | case 100: { | 746 | case 100: { |
747 | for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { | 747 | for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { |
748 | tabs->view( (*it) )->setUpdatesEnabled( TRUE ); | 748 | tabs->view( (*it) )->setUpdatesEnabled( TRUE ); |
749 | tabs->view( (*it) )->setSortEnabled( TRUE ); | 749 | tabs->view( (*it) )->setSortEnabled( TRUE ); |
750 | } | 750 | } |
751 | tb->refreshStartMenu(); | ||
751 | break; | 752 | break; |
752 | } | 753 | } |
753 | default: | 754 | default: |
754 | break; | 755 | break; |
755 | } | 756 | } |
756 | } | 757 | } |
757 | 758 | ||
758 | void Launcher::documentScanningProgress( int percent ) | 759 | void Launcher::documentScanningProgress( int percent ) |
759 | { | 760 | { |
760 | switch ( percent ) { | 761 | switch ( percent ) { |
761 | case 0: { | 762 | case 0: { |
762 | tabs->setLoadingProgress( 0 ); | 763 | tabs->setLoadingProgress( 0 ); |
763 | tabs->setLoadingWidgetEnabled( TRUE ); | 764 | tabs->setLoadingWidgetEnabled( TRUE ); |
764 | tabs->docView()->setUpdatesEnabled( FALSE ); | 765 | tabs->docView()->setUpdatesEnabled( FALSE ); |
765 | tabs->docView()->setSortEnabled( FALSE ); | 766 | tabs->docView()->setSortEnabled( FALSE ); |
766 | break; | 767 | break; |
767 | } | 768 | } |
768 | case 100: { | 769 | case 100: { |
769 | tabs->docView()->updateTools(); | 770 | tabs->docView()->updateTools(); |
770 | tabs->docView()->setSortEnabled( TRUE ); | 771 | tabs->docView()->setSortEnabled( TRUE ); |
771 | tabs->docView()->setUpdatesEnabled( TRUE ); | 772 | tabs->docView()->setUpdatesEnabled( TRUE ); |
772 | tabs->setLoadingWidgetEnabled( FALSE ); | 773 | tabs->setLoadingWidgetEnabled( FALSE ); |
773 | tb->refreshStartMenu(); | ||
774 | break; | 774 | break; |
775 | } | 775 | } |
776 | default: | 776 | default: |
777 | tabs->setLoadingProgress( percent ); | 777 | tabs->setLoadingProgress( percent ); |
778 | break; | 778 | break; |
779 | } | 779 | } |
780 | } | 780 | } |
781 | 781 | ||