Skip to content

Commit

Permalink
Quick adjustment for the finding of icons.
Browse files Browse the repository at this point in the history
Only use the fallback icon *after* the more expansive routine also fails.
  • Loading branch information
beanpole135 committed Nov 21, 2017
1 parent 7de410f commit a881c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-qt5/core/libLumina/LuminaXDG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ 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(tmp.isNull()){ tmp = QIcon::fromTheme(fallback); }
//if(tmp.isNull()){ tmp = QIcon::fromTheme(fallback); }
}
if(!tmp.isNull()){ return tmp; } //found one in the theme

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AppLaunchButtonPlugin::AppLaunchButtonPlugin(QWidget *parent, QString id, bool h
button->setAutoRaise(true);
button->setToolButtonStyle(Qt::ToolButtonIconOnly);
appfile = id.section("---",0,0).section("::",1,1);
if(!QFile::exists(appfile) && appfile.endsWith(".desktop")){
if(!QFile::exists(appfile) && appfile.endsWith(".desktop")){
//might be a relative path - try to find the file
appfile = LUtils::AppToAbsolute(appfile.section("/",-1) );
}
Expand Down

0 comments on commit a881c51

Please sign in to comment.