From 8594cc8f6ce51782c314a431c793c40575a9d7b0 Mon Sep 17 00:00:00 2001 From: max96at Date: Thu, 3 Apr 2014 19:28:23 +0200 Subject: [PATCH] Fix adding icons to custom icon directories. --- logic/icons/IconList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")