From 154d19bb74f4c5fc1519aa40cd9dfd20244273a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 1 Feb 2015 03:08:25 +0100 Subject: SCRATCH eliminate InstanceFactory --- MultiMC.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MultiMC.cpp') 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); -- cgit v1.2.3