Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/launcher/launcherview.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index fa46543..6e63fca 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp @@ -492,6 +492,5 @@ bool LauncherIconView::removeLink(const QString& linkfile) l = item->appLnk(); - if ( l->linkFileKnown() && l->linkFile() == linkfile - || l->fileKnown() && ( - l->file() == linkfile - || dl.isValid() && dl.file() == l->file() ) ) { + if ( ( l->linkFileKnown() && ( l->linkFile() == linkfile )) + || ( l->fileKnown() && ( l->file() == linkfile )) + || ( dl.fileKnown() && l->fileKnown() && ( dl.file() == l->file() )) ) { delete item; @@ -504,5 +503,5 @@ bool LauncherIconView::removeLink(const QString& linkfile) ++it; - if ( l->linkFileKnown() && l->linkFile() == linkfile - || l->file() == linkfile - || dl.isValid() && dl.file() == l->file() ) { + if ( ( l->linkFileKnown() && ( l->linkFile() == linkfile )) + || ( l->file() == linkfile ) + || ( dl.fileKnown() && ( dl.file() == l->file() )) ) { hidden.removeRef(l); |