aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index 64f21743..a32273c0 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -65,6 +65,7 @@ void XDGDesktopList::updateList(){
}
if(ok && !found.contains(dFile.name)){
if(!oldkeys.contains(path)){ newfiles << path; } //brand new file (not an update to a previously-read file)
+ else{ files.remove(path); } //just to ensure that we don't get duplicates within the Hash
files.insert(path, dFile);
found << dFile.name;
oldkeys.removeAll(path); //make sure this key does not get cleaned up later
bgstack15