aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-05-09 09:09:14 -0400
committerKen Moore <moorekou@gmail.com>2016-05-09 09:09:14 -0400
commitf4f8269162d3d13189d8ee707c7b7b2b63fce232 (patch)
tree7239f6be973ae8d2a183c9f697e8c73e5d79369e /src-qt5/core/libLumina
parentAdd a new theme template: Glass (diff)
downloadlumina-f4f8269162d3d13189d8ee707c7b7b2b63fce232.tar.gz
lumina-f4f8269162d3d13189d8ee707c7b7b2b63fce232.tar.bz2
lumina-f4f8269162d3d13189d8ee707c7b7b2b63fce232.zip
Fix the loading of icons where the theme uses pure numbers instead of the <number>x<number> format for directories.
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index c3c89d37..bfca4f71 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -640,7 +640,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){
}
}
- //If still no icon found, look for any image format inthe "pixmaps" directory
+ //If still no icon found, look for any image format in the "pixmaps" directory
if(ico.isNull()){
if(QFile::exists(LOS::AppPrefix()+"share/pixmaps/"+iconName)){
ico.addFile(LOS::AppPrefix()+"share/pixmaps/"+iconName);
@@ -682,6 +682,7 @@ QStringList LXDG::getChildIconDirs(QString parent){
//qDebug() << " - Parent:" << parent << "Dirs:" << dirs;
for(int i=0; i<dirs.length(); i++){
if(dirs[i].contains("x")){ dirs[i].prepend( QString::number(10-dirs[i].section("x",0,0).length())+QString::number(10-dirs[i].at(0).digitValue())+"::::"); }
+ else if(dirs[i].at(0).isNumber()){dirs[i].prepend( QString::number(10-dirs[i].length())+QString::number(10-dirs[i].at(0).digitValue())+"::::"); }
else{ dirs[i].prepend( "0::::"); }
}
dirs.sort();
bgstack15