diff options
author | Sky <git@bunnies.cc> | 2013-11-06 01:18:47 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-11-06 01:18:47 +0000 |
commit | dd6af4efab11b0c1c4344bcb780abf1701b51511 (patch) | |
tree | 39ca5c83ff7e0aad9bbdfdae634d75ed811b7d4b /gui/MainWindow.cpp | |
parent | 51dee3745f044e413797eb5ea3f8260d1ff6935b (diff) | |
download | MultiMC-dd6af4efab11b0c1c4344bcb780abf1701b51511.tar MultiMC-dd6af4efab11b0c1c4344bcb780abf1701b51511.tar.gz MultiMC-dd6af4efab11b0c1c4344bcb780abf1701b51511.tar.lz MultiMC-dd6af4efab11b0c1c4344bcb780abf1701b51511.tar.xz MultiMC-dd6af4efab11b0c1c4344bcb780abf1701b51511.zip |
Nag for instance specific JVM args too
Diffstat (limited to 'gui/MainWindow.cpp')
-rw-r--r-- | gui/MainWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index cf4a7124..62ae195b 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -535,7 +535,7 @@ void MainWindow::instanceActivated(QModelIndex index) BaseInstance *inst = (BaseInstance *)index.data(InstanceList::InstancePointerRole).value<void *>(); - NagUtils::checkJVMArgs(MMC->settings()->get("JvmArgs").toString(), this); + NagUtils::checkJVMArgs(inst->settings().get("JvmArgs").toString(), this); bool autoLogin = inst->settings().get("AutoLogin").toBool(); if (autoLogin) @@ -548,7 +548,7 @@ void MainWindow::on_actionLaunchInstance_triggered() { if (m_selectedInstance) { - NagUtils::checkJVMArgs(MMC->settings()->get("JvmArgs").toString(), this); + NagUtils::checkJVMArgs(m_selectedInstance->settings().get("JvmArgs").toString(), this); doLogin(); } } |