Fix adding icons to custom icon directories.
This commit is contained in:
parent
ad9d082f57
commit
8594cc8f6c
@ -255,7 +255,7 @@ void IconList::installIcons(QStringList iconFiles)
|
|||||||
QFileInfo fileinfo(file);
|
QFileInfo fileinfo(file);
|
||||||
if (!fileinfo.isReadable() || !fileinfo.isFile())
|
if (!fileinfo.isReadable() || !fileinfo.isFile())
|
||||||
continue;
|
continue;
|
||||||
QString target = PathCombine("icons", fileinfo.fileName());
|
QString target = PathCombine(m_dir.dirName(), fileinfo.fileName());
|
||||||
|
|
||||||
QString suffix = fileinfo.suffix();
|
QString suffix = fileinfo.suffix();
|
||||||
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico")
|
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico")
|
||||||
|
Loading…
Reference in New Issue
Block a user