diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-08 08:42:48 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-08 08:42:48 +0200 |
commit | 9b3ae29a361b4d89897c34750ea170d4433b93be (patch) | |
tree | 8918f9ec0bd051e234ccbc822ebd001e1bc2f084 /logic/InstanceList.cpp | |
parent | 19278c853b8ee940240e14e9d9c7cbe52cb760af (diff) | |
download | MultiMC-9b3ae29a361b4d89897c34750ea170d4433b93be.tar MultiMC-9b3ae29a361b4d89897c34750ea170d4433b93be.tar.gz MultiMC-9b3ae29a361b4d89897c34750ea170d4433b93be.tar.lz MultiMC-9b3ae29a361b4d89897c34750ea170d4433b93be.tar.xz MultiMC-9b3ae29a361b4d89897c34750ea170d4433b93be.zip |
Make the FTB packs a set instead of a list.
Diffstat (limited to 'logic/InstanceList.cpp')
-rw-r--r-- | logic/InstanceList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/InstanceList.cpp b/logic/InstanceList.cpp index 5a988fd3..8a68c334 100644 --- a/logic/InstanceList.cpp +++ b/logic/InstanceList.cpp @@ -283,9 +283,9 @@ void InstanceList::loadGroupList(QMap<QString, QString> &groupMap) } } -QList<FTBRecord> InstanceList::discoverFTBInstances() +QSet<FTBRecord> InstanceList::discoverFTBInstances() { - QList<FTBRecord> records; + QSet<FTBRecord> records; QDir dir = QDir(MMC->settings()->get("FTBLauncherDataRoot").toString()); QDir dataDir = QDir(MMC->settings()->get("FTBRoot").toString()); if (!dataDir.exists()) @@ -333,7 +333,7 @@ QList<FTBRecord> InstanceList::discoverFTBInstances() record.logo = attrs.value("logo").toString(); record.mcVersion = attrs.value("mcVersion").toString(); record.description = attrs.value("description").toString(); - records.append(record); + records.insert(record); } break; } |