1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

fixup! refactor: use qt5's connect api (#1491) (#2024)

* fixup! refactor: use qt5's connect api (#1491)

fix broken signal connection in session dialog
This commit is contained in:
Charles Kerr 2021-10-23 22:28:16 -05:00 committed by GitHub
parent a127826d76
commit d70c8387b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;