diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-04-08 18:21:43 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-04-08 18:21:43 +0200 |
commit | ae6937ab81245ed9893029ab1f7399fc53b2f0df (patch) | |
tree | 5f610a6678b0ec6765272518cbe6b8d1c501739e /gui | |
parent | 1f13f0c665001a1a79f00cdad1e63e6c9802e55f (diff) | |
download | MultiMC-ae6937ab81245ed9893029ab1f7399fc53b2f0df.tar MultiMC-ae6937ab81245ed9893029ab1f7399fc53b2f0df.tar.gz MultiMC-ae6937ab81245ed9893029ab1f7399fc53b2f0df.tar.lz MultiMC-ae6937ab81245ed9893029ab1f7399fc53b2f0df.tar.xz MultiMC-ae6937ab81245ed9893029ab1f7399fc53b2f0df.zip |
Focus password text box if there's an account saved by default. Save settings!
Diffstat (limited to 'gui')
-rw-r--r-- | gui/logindialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/logindialog.cpp b/gui/logindialog.cpp index 842a4541..31220e74 100644 --- a/gui/logindialog.cpp +++ b/gui/logindialog.cpp @@ -43,6 +43,13 @@ LoginDialog::LoginDialog(QWidget *parent, const QString& loginErrMsg) : QStringList accounts = k->getStoredAccounts("minecraft"); ui->usernameTextBox->addItems(accounts); + // TODO: restore last selected account here, if applicable + + int index = ui->usernameTextBox->currentIndex(); + if(index != -1) + { + ui->passwordTextBox->setFocus(Qt::OtherFocusReason); + } } LoginDialog::~LoginDialog() |