From 14db10826688a0f098fc48d4aec6e794b07f4ab4 Mon Sep 17 00:00:00 2001 From: alwin Date: Sun, 29 Feb 2004 01:55:19 +0000 Subject: 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... --- (limited to 'core/launcher/launcher.cpp') 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 @@ -643,7 +643,8 @@ void Launcher::typeAdded( const QString& type, const QString& name, { tabs->newView( type, pixmap, name ); ids.append( type ); - tb->refreshStartMenu(); + /* this will be called in applicationScanningProgress with value 100! */ +// tb->refreshStartMenu(); static bool first = TRUE; if ( first ) { @@ -660,7 +661,8 @@ void Launcher::typeRemoved( const QString& type ) tabs->view( type )->removeAllItems(); tabs->deleteView( type ); ids.remove( type ); - tb->refreshStartMenu(); + /* this will be called in applicationScanningProgress with value 100! */ +// tb->refreshStartMenu(); } void Launcher::applicationAdded( const QString& type, const AppLnk& app ) @@ -768,6 +770,7 @@ void Launcher::documentScanningProgress( int percent ) tabs->docView()->setSortEnabled( TRUE ); tabs->docView()->setUpdatesEnabled( TRUE ); tabs->setLoadingWidgetEnabled( FALSE ); + tb->refreshStartMenu(); break; } default: -- cgit v0.9.0.2