IconLoader: Log when icon fails to load

This commit is contained in:
Jonas Kvinge
2021-10-30 03:34:52 +02:00
parent 67a6d6c1e3
commit a461c97bcf

View File

@@ -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 (ret.isNull() && !system_icons_ && !custom_icons_) {
qLog(Error) << "Couldn't load icon" << name;
}
return ret;
}