-rw-r--r-- | core/launcher/launcher.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 0205622..b612aa2 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp @@ -378,20 +378,21 @@ LauncherView* CategoryTabWidget::newView( const QString& id, const QPixmap& pm, stack->addWidget( view, tabs++ ); return view; } void CategoryTabWidget::updateLink(const QString& linkfile) { - // LauncherView* view; - qApp->processEvents(); -// while ((view = (LauncherView*)stack->widget(i++))) { -// if ( view->removeLink(linkfile) ) -// break; -// } - // addItem(linkfile); - fileSel->reparse(); + int i=0; + LauncherView* view; + //qApp->processEvents(); + while ((view = (LauncherView*)stack->widget(i++))) { + if ( view->removeLink(linkfile) ) + break; + } + addItem(linkfile); + docview->updateTools(); } void CategoryTabWidget::paletteChange( const QPalette &p ) { QVBox::paletteChange( p ); QPalette pal = palette(); @@ -1338,17 +1339,17 @@ void Launcher::preloadApps() } } DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName) : OFileSelector(parent,mode,selector,dirName,fileName) { - setYesCancelVisible(false); - setToolbarVisible(false); - setPermissionBarVisible(false); - setLineEditVisible(false) ; - //setChooserVisible( bool chooser ); + //setYesCancelVisible(false); + //setToolbarVisible(false); + //setPermissionBarVisible(false); + //setLineEditVisible(false) ; + //setChooserVisible( bool chooser ); } DocumentTab::~DocumentTab() { } |