summaryrefslogtreecommitdiffstats
path: root/gui/dialogs
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-22 19:47:58 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-22 19:47:58 +0100
commit77ddf8b5d79caf0176ac2647e539272ee3e07d7a (patch)
tree28a93e681719bb6b1a2996603b1d7c170c98ddba /gui/dialogs
parent3051d0d3283656baafe6021e5036fdca9db0c4aa (diff)
downloadMultiMC-77ddf8b5d79caf0176ac2647e539272ee3e07d7a.tar
MultiMC-77ddf8b5d79caf0176ac2647e539272ee3e07d7a.tar.gz
MultiMC-77ddf8b5d79caf0176ac2647e539272ee3e07d7a.tar.lz
MultiMC-77ddf8b5d79caf0176ac2647e539272ee3e07d7a.tar.xz
MultiMC-77ddf8b5d79caf0176ac2647e539272ee3e07d7a.zip
Show errors when logging in in the account dialog.
Diffstat (limited to 'gui/dialogs')
-rw-r--r--gui/dialogs/AccountListDialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/dialogs/AccountListDialog.cpp b/gui/dialogs/AccountListDialog.cpp
index 242590fb..1712e352 100644
--- a/gui/dialogs/AccountListDialog.cpp
+++ b/gui/dialogs/AccountListDialog.cpp
@@ -26,7 +26,9 @@
#include <gui/dialogs/EditAccountDialog.h>
#include <gui/dialogs/ProgressDialog.h>
#include <gui/dialogs/AccountSelectDialog.h>
+#include "CustomMessageBox.h"
#include <logic/tasks/Task.h>
+#include <logic/auth/YggdrasilTask.h>
#include <MultiMC.h>
@@ -147,5 +149,12 @@ void AccountListDialog::addAccount(const QString& errMsg)
job->start();
}
+ else
+ {
+ auto reason = task->failReason();
+ auto dlg = CustomMessageBox::selectable(this, tr("Login error."), reason, QMessageBox::Critical);
+ dlg->exec();
+ delete dlg;
+ }
}
}