diff options
author | Ken Moore <ken@pcbsd.org> | 2016-07-28 13:59:00 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-07-28 13:59:00 -0400 |
commit | 42f174b65e8d73bb45cdc54d0beadd95e41f76f7 (patch) | |
tree | 0d11d955468e097ff0a8c5b5d9a5a487fb715a6f /src-qt5 | |
parent | Disable the translation of the blank HTML text for the QTextBrowser. (diff) | |
download | lumina-42f174b65e8d73bb45cdc54d0beadd95e41f76f7.tar.gz lumina-42f174b65e8d73bb45cdc54d0beadd95e41f76f7.tar.bz2 lumina-42f174b65e8d73bb45cdc54d0beadd95e41f76f7.zip |
Hide duplicate entries in the desktopbar plugin (Desktop/Favorites can be pointing to same file).
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp b/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp index 60329e7e..48bbface 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp @@ -105,6 +105,7 @@ void LDeskBarPlugin::updateFiles(){ QStringList favitems = LUtils::listFavorites(); //Remember for format for favorites: <name>::::[app/dir/<mimetype>]::::<full path> for(int i=0; i<homefiles.length(); i++){ + if( !favitems.filter(homefiles[i].canonicalFilePath()).isEmpty() ){ continue; } //duplicate entry QString type; if(homefiles[i].isDir()){ type="dir"; } else if(homefiles[i].fileName().endsWith(".desktop")){ type="app"; } |