Fix adding icons to custom icon directories.

This commit is contained in:
max96at 2014-04-03 19:28:23 +02:00
parent ad9d082f57
commit 8594cc8f6c

View File

@ -255,7 +255,7 @@ void IconList::installIcons(QStringList iconFiles)
QFileInfo fileinfo(file);
if (!fileinfo.isReadable() || !fileinfo.isFile())
continue;
QString target = PathCombine("icons", fileinfo.fileName());
QString target = PathCombine(m_dir.dirName(), fileinfo.fileName());
QString suffix = fileinfo.suffix();
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico")