diff options
author | Andrew <forkk@forkk.net> | 2013-11-22 10:12:16 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-11-22 10:12:16 -0600 |
commit | 69ac3e5a86d2a5602abc6e74904f29475b99a63c (patch) | |
tree | 1aaa4fc01543b74e053dbc54c2f6abba9f7e17b3 | |
parent | a332e0d7b15a05d7a611624ef59c0604e74b5ae4 (diff) | |
download | MultiMC-69ac3e5a86d2a5602abc6e74904f29475b99a63c.tar MultiMC-69ac3e5a86d2a5602abc6e74904f29475b99a63c.tar.gz MultiMC-69ac3e5a86d2a5602abc6e74904f29475b99a63c.tar.lz MultiMC-69ac3e5a86d2a5602abc6e74904f29475b99a63c.tar.xz MultiMC-69ac3e5a86d2a5602abc6e74904f29475b99a63c.zip |
Tweak the "no accounts" warning a bit.
It now asks users if they want to open the manage accounts dialog to
add their accounts.
-rw-r--r-- | gui/MainWindow.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
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 |