summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.cpp
Unidiff
Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 764f088..538ad79 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -392,8 +392,7 @@ bool LauncherIconView::removeLink(const QString& linkfile)
392 DocLnk dl(linkfile); 392 DocLnk dl(linkfile);
393 while (item) { 393 while (item) {
394 l = item->appLnk(); 394 l = item->appLnk();
395 if ( l->linkFileKnown() && l->linkFile() == linkfile || l->file() == linkfile 395 if ( l->linkFileKnown() && l->linkFile() == linkfile/* || l->file() == linkfile || dl.isValid() && dl.file() == l->file()*/ ) {
396 || dl.isValid() && dl.file() == l->file() ) {
397 delete item; 396 delete item;
398 did = TRUE; 397 did = TRUE;
399 } 398 }
@@ -402,9 +401,7 @@ bool LauncherIconView::removeLink(const QString& linkfile)
402 QListIterator<AppLnk> it(hidden); 401 QListIterator<AppLnk> it(hidden);
403 while ((l=it.current())) { 402 while ((l=it.current())) {
404 ++it; 403 ++it;
405 if ( l->linkFileKnown() && l->linkFile() == linkfile 404 if ( l->linkFileKnown() && l->linkFile() == linkfile/* || l->file() == linkfile || dl.isValid() && dl.file() == l->file()*/ ) {
406 || l->file() == linkfile
407 || dl.isValid() && dl.file() == l->file() ) {
408 hidden.removeRef(l); 405 hidden.removeRef(l);
409 did = TRUE; 406 did = TRUE;
410 } 407 }