diff options
author | Ken Moore <moorekou@gmail.com> | 2016-05-09 09:09:14 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-05-09 09:09:14 -0400 |
commit | f4f8269162d3d13189d8ee707c7b7b2b63fce232 (patch) | |
tree | 7239f6be973ae8d2a183c9f697e8c73e5d79369e /src-qt5/core/libLumina | |
parent | Add a new theme template: Glass (diff) | |
download | lumina-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.cpp | 3 |
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(); |