diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-15 07:55:38 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-15 07:55:38 -0400 |
commit | 145c32862ba0ec375a0a71e979a76d026e6f00b4 (patch) | |
tree | 10ef1c56fedb32066723c53cf81800148889685a /libLumina/LuminaXDG.cpp | |
parent | Add the ability for lumina-open to be able to offer recommendations on web br... (diff) | |
download | lumina-145c32862ba0ec375a0a71e979a76d026e6f00b4.tar.gz lumina-145c32862ba0ec375a0a71e979a76d026e6f00b4.tar.bz2 lumina-145c32862ba0ec375a0a71e979a76d026e6f00b4.zip |
Don't add the "LUMINA" tag to the name of Lumina-specific applications.
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index dbf08b88..57757fc9 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -88,6 +88,15 @@ XDGDesktop LXDG::loadDesktopFile(QString filePath, bool& ok){ } //end reading file file.close(); //If there are OnlyShowIn desktops listed, add them to the name + if(DF.showInList.contains("lumina", Qt::CaseInsensitive)){ + //Need to be careful about case insensitivity here - the QList functions don't understand it + for(int i=0; i<DF.showInList.length(); i++){ + if(DF.showInList[i].toLower()=="lumina"){ + DF.showInList.removeAt(i); + i--; + } + } + } if(!DF.showInList.isEmpty()){ DF.name.append(" ("+DF.showInList.join(", ")+")"); } |