mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
update autoConnect on clicking the checkbox
This commit is contained in:
parent
2038d1bbce
commit
1e266f4a2e
1 changed files with 1 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ DlgConnect::DlgConnect(QWidget *parent) : QDialog(parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(savePasswordCheckBox, &QCheckBox::QT_STATE_CHANGED, this, &DlgConnect::passwordSaved);
|
connect(savePasswordCheckBox, &QCheckBox::QT_STATE_CHANGED, this, &DlgConnect::passwordSaved);
|
||||||
|
connect(autoConnectCheckBox, &QCheckBox::QT_STATE_CHANGED, &servers, &ServersSettings::setAutoConnect);
|
||||||
|
|
||||||
serverIssuesLabel =
|
serverIssuesLabel =
|
||||||
new QLabel(tr("If you have any trouble connecting or registering then contact the server staff for help!"));
|
new QLabel(tr("If you have any trouble connecting or registering then contact the server staff for help!"));
|
||||||
|
|
@ -345,7 +346,6 @@ void DlgConnect::actOk()
|
||||||
}
|
}
|
||||||
|
|
||||||
servers.setPrevioushostName(saveEdit->text());
|
servers.setPrevioushostName(saveEdit->text());
|
||||||
servers.setAutoConnect(autoConnectCheckBox->isChecked());
|
|
||||||
|
|
||||||
if (playernameEdit->text().isEmpty()) {
|
if (playernameEdit->text().isEmpty()) {
|
||||||
QMessageBox::critical(this, tr("Connect Warning"), tr("The player name can't be empty."));
|
QMessageBox::critical(this, tr("Connect Warning"), tr("The player name can't be empty."));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue