diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-04 14:46:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-04 14:46:33 +0200 |
commit | 005a010ee6a67191ec24583780310fcf217ff30c (patch) | |
tree | 22d0e5e63a03962a393db975fa1cdd1e65306e6b /gui | |
parent | 935ad6b02c47a74d94dc5afd5ca2795cbd9f7c75 (diff) | |
download | MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.gz MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.lz MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.tar.xz MultiMC-005a010ee6a67191ec24583780310fcf217ff30c.zip |
More code cleanups!
Diffstat (limited to 'gui')
-rw-r--r-- | gui/mainwindow.cpp | 6 |
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); |