summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authormax96at <max96at@gmail.com>2014-04-03 19:28:23 +0200
committermax96at <max96at@gmail.com>2014-04-03 19:28:23 +0200
commit8594cc8f6ce51782c314a431c793c40575a9d7b0 (patch)
tree2a6daecd6abe7d55dc742f6c56f8d0036c43baab /logic
parentad9d082f5713df72fc18de957547b7ad47a60e46 (diff)
downloadMultiMC-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')
-rw-r--r--logic/icons/IconList.cpp2
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")