summaryrefslogtreecommitdiff
path: root/core/launcher/launcher.cpp
Unidiff
Diffstat (limited to 'core/launcher/launcher.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcher.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 5f050aa..0205622 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -167,9 +167,9 @@ void CategoryTabWidget::addItem( const QString& linkfile )
167{ 167{
168 int i=0; 168// int i=0;
169 AppLnk *app = new AppLnk(linkfile); 169// AppLnk *app = new AppLnk(linkfile);
170 if ( !app->isValid() ) { 170// if ( !app->isValid() ) {
171 delete app; 171// delete app;
172 app=0; 172// app=0;
173 } 173// }
174 if ( !app || !app->file().isEmpty() ) { 174// if ( !app || !app->file().isEmpty() ) {
175 // A document 175 // A document
@@ -183,15 +183,15 @@ void CategoryTabWidget::addItem( const QString& linkfile )
183// } 183// }
184 return; 184// return;
185 } 185// }
186 // An application 186 // An application
187 for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { 187// for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) {
188 if ( !(*it).isEmpty() ) { 188// if ( !(*it).isEmpty() ) {
189 QRegExp tf(*it,FALSE,TRUE); 189// QRegExp tf(*it,FALSE,TRUE);
190 if ( tf.match(app->type()) >= 0 ) { 190// if ( tf.match(app->type()) >= 0 ) {
191 ((LauncherView*)stack->widget(i))->addItem(app); 191// ((LauncherView*)stack->widget(i))->addItem(app);
192 return; 192// return;
193 } 193// }
194 i++; 194// i++;
195 } 195 // }
196 } 196 // }
197 197
@@ -1344,3 +1344,3 @@ DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString
1344 setYesCancelVisible(false); 1344 setYesCancelVisible(false);
1345 setToolbarVisible(true); 1345 setToolbarVisible(false);
1346 setPermissionBarVisible(false); 1346 setPermissionBarVisible(false);