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 /application/MultiMC.cpp | |
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 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 7fce31d0..e8309ceb 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -584,13 +584,13 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) auto InstDirSetting = m_settings->getSetting("InstanceDir"); // instance path: check for problems with '!' in instance path and warn the user in the log // and rememer that we have to show him a dialog when the gui starts (if it does so) - QString instDir = m_settings->get("InstanceDir").toString(); + QString instDir = InstDirSetting->get().toString(); qDebug() << "Instance path : " << instDir; if (FS::checkProblemticPathJava(QDir(instDir))) { qWarning() << "Your instance path contains \'!\' and this is known to cause java problems"; } - m_instances.reset(new InstanceList(m_settings, InstDirSetting->get().toString(), this)); + m_instances.reset(new InstanceList(this)); m_instanceFolder = new FolderInstanceProvider(m_settings, instDir); connect(InstDirSetting.get(), &Setting::SettingChanged, m_instanceFolder, &FolderInstanceProvider::on_InstFolderChanged); m_instances->addInstanceProvider(m_instanceFolder); |