diff options
author | wi <william.os4y@gmail.com> | 2015-04-15 21:52:02 +0200 |
---|---|---|
committer | wi <william.os4y@gmail.com> | 2015-04-15 21:52:02 +0200 |
commit | fb397d589e02a59f5c6cfc90cb52769df01412a9 (patch) | |
tree | 7a0320eff2708591bbac68a3241441eca5f2f9f3 /libLumina/LuminaXDG.cpp | |
parent | Corrections proposed by Ken (diff) | |
parent | Clean up a *lot* of the general XCB warnings that sometimes occur, and also t... (diff) | |
download | lumina-fb397d589e02a59f5c6cfc90cb52769df01412a9.tar.gz lumina-fb397d589e02a59f5c6cfc90cb52769df01412a9.tar.bz2 lumina-fb397d589e02a59f5c6cfc90cb52769df01412a9.zip |
Merge remote-tracking branch 'upstream/master' into deskEditor
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(", ")+")"); } |