aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-24 12:07:38 -0400
committerKen Moore <ken@pcbsd.org>2016-08-24 12:07:38 -0400
commite4a41770db2797025e7b25a4a50dab5a04ef7ce9 (patch)
tree37f57166f4a0fbb87f9b5eeb81c0d435b7005654
parentFix a bug in lumina-open where the directory handling was not working. (diff)
downloadlumina-e4a41770db2797025e7b25a4a50dab5a04ef7ce9.tar.gz
lumina-e4a41770db2797025e7b25a4a50dab5a04ef7ce9.tar.bz2
lumina-e4a41770db2797025e7b25a4a50dab5a04ef7ce9.zip
Another small fix for the application auto-update routine.
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index fc346f34..677c32d9 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -48,17 +48,17 @@ void XDGDesktopList::updateList(){
apps = dir.entryList(QStringList() << "*.desktop",QDir::Files, QDir::Name);
for(int a=0; a<apps.length(); a++){
path = dir.absoluteFilePath(apps[a]);
- if(files.contains(path) && (files[path].lastRead>QFileInfo(path).lastModified()) ){
+ if(files.contains(path) && (files.value(path).lastRead>QFileInfo(path).lastModified()) ){
//Re-use previous data for this file (nothing changed)
dFile = files[path];
ok=true;
}else{
ok=false;
- dFile = LXDG::loadDesktopFile(dir.absoluteFilePath(apps[a]),ok); //will change the "ok" variable as needed
+ dFile = LXDG::loadDesktopFile(path,ok); //will change the "ok" variable as needed
appschanged = true; //flag that something changed - needed to load a file
}
if(ok && !found.contains(dFile.name)){
- if(!files.contains(path)){ newfiles << path; } //brand new file (not an update to a previously-read file)
+ if(!oldkeys.contains(path)){ newfiles << path; } //brand new file (not an update to a previously-read file)
files.insert(path, dFile);
found << dFile.name;
oldkeys.removeAll(path); //make sure this key does not get cleaned up later
bgstack15