aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaXDG.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2018-03-10 15:09:31 +0000
committerWeblate <noreply@weblate.org>2018-03-10 15:09:31 +0000
commite823783499a7b2f8c3cbfb24ae428b39311bee5e (patch)
tree74138f1e34b8f090f62bd5412f38b8e185209302 /src-qt5/core/libLumina/LuminaXDG.cpp
parentTranslated using Weblate (Italian) (diff)
parentAdd the beginnings of the new window frame (widgets-based) (diff)
downloadlumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.tar.gz
lumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.tar.bz2
lumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index e1c582d9..95585f1e 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -853,9 +853,12 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){
QIcon tmp;
if(!iconName.contains("libreoffice")){ //libreoffice is stupid - their svg icons are un-renderable with Qt
tmp = QIcon::fromTheme(iconName);
+ /*if(iconName.contains("start-here")){
+ qDebug() << "[ICON]" << iconName << "found:" << !tmp.isNull() << tmp.name();
+ }*/
//if(tmp.isNull()){ tmp = QIcon::fromTheme(fallback); }
}
- if(!tmp.isNull()){ return tmp; } //found one in the theme
+ if(!tmp.isNull() && tmp.name()==iconName){ return tmp; } //found this in the theme
//NOTE: This was re-written on 11/10/15 to avoid using the QIcon::fromTheme() framework
@@ -964,6 +967,8 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){
else if(iconName.contains("-x-") && !iconName.endsWith("-x-generic")){
//mimetype - try to use the generic type icon
ico = LXDG::findIcon(iconName.section("-x-",0,0)+"-x-generic", "");
+ }else if(iconName.contains("-")){
+ ico = LXDG::findIcon(iconName.section("-",0,-2), ""); //chop the last modifier off the end and try again
}
}
if(ico.isNull()){
bgstack15