Merge branch 'master' of git://github.com/peterix/MultiMC5
This commit is contained in:
commit
7ec32d5657
@ -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()
|
||||
|
@ -36,6 +36,7 @@ void INISettingsObject::changeSetting(const Setting &setting, QVariant value)
|
||||
m_ini.set(setting.configKey(), value);
|
||||
else
|
||||
m_ini.remove(setting.configKey());
|
||||
m_ini.saveFile(m_filePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user