diff options
author | max96at <max96at@gmail.com> | 2014-04-03 19:28:23 +0200 |
---|---|---|
committer | max96at <max96at@gmail.com> | 2014-04-03 19:28:23 +0200 |
commit | 8594cc8f6ce51782c314a431c793c40575a9d7b0 (patch) | |
tree | 2a6daecd6abe7d55dc742f6c56f8d0036c43baab /logic/icons | |
parent | ad9d082f5713df72fc18de957547b7ad47a60e46 (diff) | |
download | MultiMC-8594cc8f6ce51782c314a431c793c40575a9d7b0.tar MultiMC-8594cc8f6ce51782c314a431c793c40575a9d7b0.tar.gz MultiMC-8594cc8f6ce51782c314a431c793c40575a9d7b0.tar.lz MultiMC-8594cc8f6ce51782c314a431c793c40575a9d7b0.tar.xz MultiMC-8594cc8f6ce51782c314a431c793c40575a9d7b0.zip |
Fix adding icons to custom icon directories.
Diffstat (limited to 'logic/icons')
-rw-r--r-- | logic/icons/IconList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/icons/IconList.cpp b/logic/icons/IconList.cpp index d76e6fbb..829fc5fc 100644 --- a/logic/icons/IconList.cpp +++ b/logic/icons/IconList.cpp @@ -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") |