diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-01 03:08:25 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:16 +0200 |
commit | 154d19bb74f4c5fc1519aa40cd9dfd20244273a1 (patch) | |
tree | 1074077466171fa02ebc50e19ee0fc2257710401 /MultiMC.cpp | |
parent | c088d3bef0e18c6cd90db15720841705d53c754d (diff) | |
download | MultiMC-154d19bb74f4c5fc1519aa40cd9dfd20244273a1.tar MultiMC-154d19bb74f4c5fc1519aa40cd9dfd20244273a1.tar.gz MultiMC-154d19bb74f4c5fc1519aa40cd9dfd20244273a1.tar.lz MultiMC-154d19bb74f4c5fc1519aa40cd9dfd20244273a1.tar.xz MultiMC-154d19bb74f4c5fc1519aa40cd9dfd20244273a1.zip |
SCRATCH eliminate InstanceFactory
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r-- | MultiMC.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp index 6a967808..0b34d606 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -205,7 +205,7 @@ MultiMC::MultiMC(int &argc, char **argv, bool test_mode) : QApplication(argc, ar QLOG_WARN() << "Your instance path contains \'!\' and this is known to cause java problems"; } - m_instances.reset(new InstanceList(InstDirSetting->get().toString(), this)); + m_instances.reset(new InstanceList(m_settings, InstDirSetting->get().toString(), this)); QLOG_INFO() << "Loading Instances..."; m_instances->loadList(); connect(InstDirSetting.get(), SIGNAL(SettingChanged(const Setting &, QVariant)), @@ -577,6 +577,10 @@ QIcon MultiMC::getThemedIcon(const QString& name) void MultiMC::onExit() { + if(m_instances) + { + m_instances->saveGroupList(); + } if (m_updateOnExitPath.size()) { installUpdates(m_updateOnExitPath, m_updateOnExitFlags); |