summaryrefslogtreecommitdiffstats
path: root/logic/icons/IconList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/icons/IconList.cpp')
-rw-r--r--logic/icons/IconList.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/logic/icons/IconList.cpp b/logic/icons/IconList.cpp
index 6db8b035..964d61e9 100644
--- a/logic/icons/IconList.cpp
+++ b/logic/icons/IconList.cpp
@@ -20,14 +20,15 @@
#include <QMimeData>
#include <QUrl>
#include <QFileSystemWatcher>
-#include <MultiMC.h>
+#include <QSet>
+#include <logger/QsLog.h>
#define MAX_SIZE 1024
-IconList::IconList(QString path, QObject *parent) : QAbstractListModel(parent)
+IconList::IconList(QString builtinPath, QString path, QObject *parent) : QAbstractListModel(parent)
{
// add builtin icons
- QDir instance_icons(":/icons/instances/");
+ QDir instance_icons(builtinPath);
auto file_info_list = instance_icons.entryInfoList(QDir::Files, QDir::Name);
for (auto file_info : file_info_list)
{