summaryrefslogtreecommitdiffstats
path: root/application/LaunchController.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-07-05 02:47:22 +0200
committerPetr Mrázek <peterix@gmail.com>2015-07-05 02:47:22 +0200
commit5133b0f34f1e6fc046787e7369b403a381a2f60c (patch)
treebf2071c2a517d9adb98d59d7133d115859bd518c /application/LaunchController.cpp
parent5f41886d76c11fe8befe8d059c75dcb5bc11f78d (diff)
downloadMultiMC-5133b0f34f1e6fc046787e7369b403a381a2f60c.tar
MultiMC-5133b0f34f1e6fc046787e7369b403a381a2f60c.tar.gz
MultiMC-5133b0f34f1e6fc046787e7369b403a381a2f60c.tar.lz
MultiMC-5133b0f34f1e6fc046787e7369b403a381a2f60c.tar.xz
MultiMC-5133b0f34f1e6fc046787e7369b403a381a2f60c.zip
GH-1053 cleanup
Diffstat (limited to 'application/LaunchController.cpp')
-rw-r--r--application/LaunchController.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/application/LaunchController.cpp b/application/LaunchController.cpp
index fdda75ef..b1116e07 100644
--- a/application/LaunchController.cpp
+++ b/application/LaunchController.cpp
@@ -162,8 +162,6 @@ void LaunchController::launchInstance()
return;
}
- m_launcher->setProfiler(m_profiler);
-
if(m_parentWidget)
{
m_parentWidget->hide();
@@ -179,22 +177,20 @@ void LaunchController::launchInstance()
void LaunchController::readyForLaunch()
{
- auto profiler = m_launcher->getProfiler();
-
- if (!profiler)
+ if (!m_profiler)
{
m_launcher->launch();
return;
}
QString error;
- if (!profiler->check(&error))
+ if (!m_profiler->check(&error))
{
m_launcher->abort();
QMessageBox::critical(m_parentWidget, tr("Error"), tr("Couldn't start profiler: %1").arg(error));
return;
}
- BaseProfiler *profilerInstance = profiler->createProfiler(m_launcher->instance(), this);
+ BaseProfiler *profilerInstance = m_profiler->createProfiler(m_launcher->instance(), this);
connect(profilerInstance, &BaseProfiler::readyToLaunch, [this](const QString & message)
{