diff options
Diffstat (limited to 'src/plugins/debugger/debuggerdialogs.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerdialogs.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp index 3b8a5ae480..0f690dad90 100644 --- a/src/plugins/debugger/debuggerdialogs.cpp +++ b/src/plugins/debugger/debuggerdialogs.cpp @@ -604,14 +604,10 @@ StartRemoteCdbDialog::StartRemoteCdbDialog(QWidget *parent) : m_okButton = box->button(QDialogButtonBox::Ok); m_okButton->setEnabled(false); - connect(m_lineEdit, &QLineEdit::textChanged, - this, &StartRemoteCdbDialog::textChanged); - connect(m_lineEdit, &QLineEdit::returnPressed, - [this] { m_okButton->animateClick(); }); - connect(box, &QDialogButtonBox::accepted, - this, &StartRemoteCdbDialog::accept); - connect(box, &QDialogButtonBox::rejected, - this, &QDialog::reject); + connect(m_lineEdit, &QLineEdit::textChanged, this, &StartRemoteCdbDialog::textChanged); + connect(m_lineEdit, &QLineEdit::returnPressed, m_okButton, &QAbstractButton::animateClick); + connect(box, &QDialogButtonBox::accepted, this, &StartRemoteCdbDialog::accept); + connect(box, &QDialogButtonBox::rejected, this, &QDialog::reject); } void StartRemoteCdbDialog::accept() |