From 69ac3e5a86d2a5602abc6e74904f29475b99a63c Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 22 Nov 2013 10:12:16 -0600 Subject: Tweak the "no accounts" warning a bit. It now asks users if they want to open the manage accounts dialog to add their accounts. --- gui/MainWindow.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gui') diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 3279661f..9824d52f 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -567,9 +567,16 @@ void MainWindow::doLogin(const QString &errorMsg) if (accounts->count() <= 0) { // Tell the user they need to log in at least one account in order to play. - CustomMessageBox::selectable(this, tr("No Accounts"), - tr("In order to play Minecraft, you must have at least one Mojang or Minecraft account logged in to MultiMC. Please add an account."), - QMessageBox::Information)->exec(); + auto reply = CustomMessageBox::selectable(this, tr("No Accounts"), + tr("In order to play Minecraft, you must have at least one Mojang or Minecraft account logged in to MultiMC." + "Would you like to open the account manager to add an account now?"), + QMessageBox::Information, QMessageBox::Yes | QMessageBox::No)->exec(); + + if (reply == QMessageBox::Yes) + { + // Open the account manager. + on_actionManageAccounts_triggered(); + } return; } else -- cgit v1.2.3