summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-29 01:55:19 (UTC)
committer alwin <alwin>2004-02-29 01:55:19 (UTC)
commit14db10826688a0f098fc48d4aec6e794b07f4ab4 (patch) (unidiff)
tree8ea76bec5445debeedd1fb8099593ceaae39cf38
parent0b9baf5317f316bf2932d39cbfa795568ec56e39 (diff)
downloadopie-14db10826688a0f098fc48d4aec6e794b07f4ab4.zip
opie-14db10826688a0f098fc48d4aec6e794b07f4ab4.tar.gz
opie-14db10826688a0f098fc48d4aec6e794b07f4ab4.tar.bz2
aye - fixed the problem on startup, that on each tab inserted the tabbar menu is re-build. and it was such simple way - just 3 lines...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 98e7481..7887704 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -638,34 +638,36 @@ void Launcher::systemMessage( const QCString &msg, const QByteArray &data)
638} 638}
639 639
640// These are the update functions from the server 640// These are the update functions from the server
641void Launcher::typeAdded( const QString& type, const QString& name, 641void Launcher::typeAdded( const QString& type, const QString& name,
642 const QPixmap& pixmap, const QPixmap& ) 642 const QPixmap& pixmap, const QPixmap& )
643{ 643{
644 tabs->newView( type, pixmap, name ); 644 tabs->newView( type, pixmap, name );
645 ids.append( type ); 645 ids.append( type );
646 tb->refreshStartMenu(); 646 /* this will be called in applicationScanningProgress with value 100! */
647// tb->refreshStartMenu();
647 648
648 static bool first = TRUE; 649 static bool first = TRUE;
649 if ( first ) { 650 if ( first ) {
650 first = FALSE; 651 first = FALSE;
651 tabs->categoryBar->showTab(type); 652 tabs->categoryBar->showTab(type);
652 } 653 }
653 654
654 tabs->view( type )->setUpdatesEnabled( FALSE ); 655 tabs->view( type )->setUpdatesEnabled( FALSE );
655 tabs->view( type )->setSortEnabled( FALSE ); 656 tabs->view( type )->setSortEnabled( FALSE );
656} 657}
657 658
658void Launcher::typeRemoved( const QString& type ) 659void Launcher::typeRemoved( const QString& type )
659{ 660{
660 tabs->view( type )->removeAllItems(); 661 tabs->view( type )->removeAllItems();
661 tabs->deleteView( type ); 662 tabs->deleteView( type );
662 ids.remove( type ); 663 ids.remove( type );
663 tb->refreshStartMenu(); 664 /* this will be called in applicationScanningProgress with value 100! */
665// tb->refreshStartMenu();
664} 666}
665 667
666void Launcher::applicationAdded( const QString& type, const AppLnk& app ) 668void Launcher::applicationAdded( const QString& type, const AppLnk& app )
667{ 669{
668 if ( app.type() == "Separator" ) // No tr 670 if ( app.type() == "Separator" ) // No tr
669 return; 671 return;
670 672
671 LauncherView *view = tabs->view( type ); 673 LauncherView *view = tabs->view( type );
@@ -763,16 +765,17 @@ void Launcher::documentScanningProgress( int percent )
763 tabs->docView()->setSortEnabled( FALSE ); 765 tabs->docView()->setSortEnabled( FALSE );
764 break; 766 break;
765 } 767 }
766 case 100: { 768 case 100: {
767 tabs->docView()->updateTools(); 769 tabs->docView()->updateTools();
768 tabs->docView()->setSortEnabled( TRUE ); 770 tabs->docView()->setSortEnabled( TRUE );
769 tabs->docView()->setUpdatesEnabled( TRUE ); 771 tabs->docView()->setUpdatesEnabled( TRUE );
770 tabs->setLoadingWidgetEnabled( FALSE ); 772 tabs->setLoadingWidgetEnabled( FALSE );
773 tb->refreshStartMenu();
771 break; 774 break;
772 } 775 }
773 default: 776 default:
774 tabs->setLoadingProgress( percent ); 777 tabs->setLoadingProgress( percent );
775 break; 778 break;
776 } 779 }
777} 780}
778 781