mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +00:00
* fixup! refactor: use qt5's connect api (#1491) fix broken signal connection in session dialog
This commit is contained in:
parent
a127826d76
commit
d70c8387b3
1 changed files with 2 additions and 2 deletions
|
@ -54,10 +54,10 @@ SessionDialog::SessionDialog(Session& session, Prefs& prefs, QWidget* parent)
|
||||||
ui_.setupUi(this);
|
ui_.setupUi(this);
|
||||||
|
|
||||||
ui_.localSessionRadio->setChecked(!prefs.get<bool>(Prefs::SESSION_IS_REMOTE));
|
ui_.localSessionRadio->setChecked(!prefs.get<bool>(Prefs::SESSION_IS_REMOTE));
|
||||||
connect(ui_.localSessionRadio, &QAbstractButton::toggle, this, &SessionDialog::resensitize);
|
connect(ui_.localSessionRadio, &QAbstractButton::toggled, this, &SessionDialog::resensitize);
|
||||||
|
|
||||||
ui_.remoteSessionRadio->setChecked(prefs.get<bool>(Prefs::SESSION_IS_REMOTE));
|
ui_.remoteSessionRadio->setChecked(prefs.get<bool>(Prefs::SESSION_IS_REMOTE));
|
||||||
connect(ui_.remoteSessionRadio, &QAbstractButton::toggle, this, &SessionDialog::resensitize);
|
connect(ui_.remoteSessionRadio, &QAbstractButton::toggled, this, &SessionDialog::resensitize);
|
||||||
|
|
||||||
ui_.hostEdit->setText(prefs.get<QString>(Prefs::SESSION_REMOTE_HOST));
|
ui_.hostEdit->setText(prefs.get<QString>(Prefs::SESSION_REMOTE_HOST));
|
||||||
remote_widgets_ << ui_.hostLabel << ui_.hostEdit;
|
remote_widgets_ << ui_.hostLabel << ui_.hostEdit;
|
||||||
|
|
Loading…
Reference in a new issue