mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-14 09:44:51 +01:00
IconLoader: Log when icon fails to load
This commit is contained in:
parent
67a6d6c1e3
commit
a461c97bcf
@ -133,6 +133,10 @@ QIcon IconLoader::Load(const QString &name, const int fixed_size, const int min_
|
|||||||
if (QFile::exists(filename)) ret.addFile(filename, QSize(s, s));
|
if (QFile::exists(filename)) ret.addFile(filename, QSize(s, s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret.isNull() && !system_icons_ && !custom_icons_) {
|
||||||
|
qLog(Error) << "Couldn't load icon" << name;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user