[users] Add now-obvious missed initialization
- start the checkbox off in the state from config
This commit is contained in:
parent
15b5ef467e
commit
d7dc48d201
@ -112,6 +112,7 @@ UsersPage::UsersPage( Config* config, QWidget* parent )
|
||||
connect( config, &Config::loginNameChanged, ui->textBoxLoginName, &QLineEdit::setText );
|
||||
connect( config, &Config::loginNameStatusChanged, this, &UsersPage::reportLoginNameStatus );
|
||||
|
||||
ui->checkBoxDoAutoLogin->setChecked( m_config->doAutoLogin() );
|
||||
connect( ui->checkBoxDoAutoLogin, &QCheckBox::stateChanged, this, [this]( int checked ) {
|
||||
m_config->setAutoLogin( checked != Qt::Unchecked );
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user