diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-24 12:54:52 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-24 12:54:52 -0400 |
commit | ebcff73956c64d4db4dd3525ef66405e13218840 (patch) | |
tree | f8355e23518bcbe23ccbfb8543caa0a4fe8eaf23 /libLumina/LuminaXDG.cpp | |
parent | Finish cleaning up the submenu open/close checks for the userbutton. Now the ... (diff) | |
download | lumina-ebcff73956c64d4db4dd3525ef66405e13218840.tar.gz lumina-ebcff73956c64d4db4dd3525ef66405e13218840.tar.bz2 lumina-ebcff73956c64d4db4dd3525ef66405e13218840.zip |
Just a minor update to some debugging (when turned on) for checking icons within the current theme.
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index d2b6ef41..d71edf60 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -458,7 +458,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ bool DEBUG =false; if(DEBUG){ qDebug() << "[LXDG] Find icon for:" << iconName; } if(QFile::exists(iconName) && iconName.startsWith("/")){ return QIcon(iconName); } - else if(iconName.startsWith("/")){ iconName.section("/",-1); } //Invalid absolute path, just looks for the icon + else if(iconName.startsWith("/")){ iconName.section("/",-1); } //Invalid absolute path, just look for the icon //Check if the icon is actually given if(iconName.isEmpty()){ if(fallback.isEmpty()){ return QIcon(); } @@ -488,7 +488,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ QIcon ico = QIcon::fromTheme(iconName); //Try to load the icon from /usr/local/share/pixmaps if( ico.isNull() ){ - //qDebug() << "Could not find icon:" << iconName; + //qDebug() << "Could not find icon:" << iconName <<"In Theme:" << cTheme; QDir base(LOS::AppPrefix()+"share/pixmaps"); QStringList matches = base.entryList(QStringList() << "*"+iconName+"*", QDir::Files | QDir::NoDotAndDotDot, QDir::Name); if( !matches.isEmpty() ){ |