summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-04 14:46:33 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-04 14:46:33 +0200
commit005a010ee6a67191ec24583780310fcf217ff30c (patch)
tree22d0e5e63a03962a393db975fa1cdd1e65306e6b /gui/mainwindow.cpp
parent935ad6b02c47a74d94dc5afd5ca2795cbd9f7c75 (diff)
downloadMultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar
MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.gz
MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.lz
MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.xz
MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.zip
More code cleanups!
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index d3dee254..25949042 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -53,12 +53,12 @@
#include "AppVersion.h"
#include "tasks/LoginTask.h"
-#include "tasks/GameUpdateTask.h"
#include "BaseInstance.h"
#include "InstanceFactory.h"
#include "MinecraftProcess.h"
#include "OneSixAssets.h"
+#include "OneSixUpdate.h"
#include "instancemodel.h"
#include "instancedelegate.h"
@@ -393,7 +393,7 @@ void MainWindow::doLogin(const QString& errorMsg)
LoginDialog* loginDlg = new LoginDialog(this, errorMsg);
if (loginDlg->exec())
{
- UserInfo uInfo(loginDlg->getUsername(), loginDlg->getPassword());
+ UserInfo uInfo{loginDlg->getUsername(), loginDlg->getPassword()};
TaskDialog* tDialog = new TaskDialog(this);
LoginTask* loginTask = new LoginTask(uInfo, tDialog);
@@ -412,7 +412,7 @@ void MainWindow::onLoginComplete(LoginResponse response)
return;
m_activeLogin = LoginResponse(response);
- GameUpdateTask *updateTask = m_activeInst->doUpdate();
+ OneSixUpdate *updateTask = m_activeInst->doUpdate();
if(!updateTask)
{
launchInstance(m_activeInst, m_activeLogin);