diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/gui/icons/IconList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/gui/icons/IconList.cpp b/api/gui/icons/IconList.cpp index aed96869..139fe5cf 100644 --- a/api/gui/icons/IconList.cpp +++ b/api/gui/icons/IconList.cpp @@ -261,7 +261,7 @@ void IconList::installIcons(const QStringList &iconFiles) QString target = FS::PathCombine(m_dir.dirName(), fileinfo.fileName()); QString suffix = fileinfo.suffix(); - if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico") + if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico" && suffix != "svg") continue; if (!QFile::copy(file, target)) @@ -331,7 +331,7 @@ bool IconList::addIcon(const QString &key, const QString &name, const QString &p { // replace the icon even? is the input valid? QIcon icon(path); - if (!icon.availableSizes().size()) + if (icon.isNull()) return false; auto iter = name_index.find(key); if (iter != name_index.end()) |