diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-05 09:52:04 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-05 09:52:04 +0100 |
commit | 6d034bda825c506bede7bf0229f47095222edfc2 (patch) | |
tree | e305701ed2eb2afb080ade007d3fe1668f1cfa4e /api/logic/InstanceList.h | |
parent | 44475350ebfed97f6b0cb14c1e62c8ef67fb9a31 (diff) | |
download | MultiMC-6d034bda825c506bede7bf0229f47095222edfc2.tar MultiMC-6d034bda825c506bede7bf0229f47095222edfc2.tar.gz MultiMC-6d034bda825c506bede7bf0229f47095222edfc2.tar.lz MultiMC-6d034bda825c506bede7bf0229f47095222edfc2.tar.xz MultiMC-6d034bda825c506bede7bf0229f47095222edfc2.zip |
GH-2059 fix instance directory not being created on first launch
Diffstat (limited to 'api/logic/InstanceList.h')
-rw-r--r-- | api/logic/InstanceList.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/api/logic/InstanceList.h b/api/logic/InstanceList.h index 89be10de..dceca043 100644 --- a/api/logic/InstanceList.h +++ b/api/logic/InstanceList.h @@ -27,16 +27,14 @@ #include "QObjectPtr.h" -class QFileSystemWatcher; class BaseInstance; -class QDir; class MULTIMC_LOGIC_EXPORT InstanceList : public QAbstractListModel { Q_OBJECT public: - explicit InstanceList(SettingsObjectPtr globalSettings, const QString &instDir, QObject *parent = 0); + explicit InstanceList(QObject *parent = 0); virtual ~InstanceList(); public: @@ -101,9 +99,7 @@ private: protected: int m_watchLevel = 0; QSet<BaseInstanceProvider *> m_updatedProviders; - QString m_instDir; QList<InstancePtr> m_instances; QSet<QString> m_groups; - SettingsObjectPtr m_globalSettings; QVector<shared_qobject_ptr<BaseInstanceProvider>> m_providers; }; |