summaryrefslogtreecommitdiffstats
path: root/application/InstanceWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/InstanceWindow.cpp')
-rw-r--r--application/InstanceWindow.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/application/InstanceWindow.cpp b/application/InstanceWindow.cpp
index 7b3e1d10..1c7731bd 100644
--- a/application/InstanceWindow.cpp
+++ b/application/InstanceWindow.cpp
@@ -174,11 +174,6 @@ void InstanceWindow::closeEvent(QCloseEvent *event)
MMC->settings()->set("ConsoleWindowGeometry", saveGeometry().toBase64());
emit isClosing();
event->accept();
- if(m_shouldQuit)
- {
- // this needs to be delayed so we don't do horrible things
- QMetaObject::invokeMethod(MMC, "quit", Qt::QueuedConnection);
- }
}
bool InstanceWindow::saveAll()
@@ -203,11 +198,7 @@ void InstanceWindow::on_btnKillMinecraft_clicked()
// FIXME: duplicate logic between MainWindow and InstanceWindow
else if(saveAll())
{
- m_launchController.reset(new LaunchController());
- m_launchController->setInstance(m_instance);
- m_launchController->setOnline(true);
- m_launchController->setParentWidget(this);
- m_launchController->start();
+ MMC->launch(m_instance, true, nullptr);
}
}