diff --git a/src/platform/qt/GDBWindow.cpp b/src/platform/qt/GDBWindow.cpp index 8f1c44fe8..3f1f86efb 100644 --- a/src/platform/qt/GDBWindow.cpp +++ b/src/platform/qt/GDBWindow.cpp @@ -56,7 +56,9 @@ GDBWindow::GDBWindow(GDBController* controller, QWidget* parent) watchpointsSettings->setLayout(watchpointsSettingsLayout); QButtonGroup* watchpointsButtonGroup = new QButtonGroup(watchpointsSettings); - connect(watchpointsButtonGroup, &QButtonGroup::idClicked, controller, &GDBController::setWatchpointsBehavior); + connect(watchpointsButtonGroup, qOverload(&QButtonGroup::buttonClicked), controller, [watchpointsButtonGroup, controller](QAbstractButton* button) { + controller->setWatchpointsBehavior(watchpointsButtonGroup->id(button)); + }); m_watchpointsStandardRadio = new QRadioButton(tr("Standard GDB"), watchpointsSettings); m_watchpointsStandardRadio->setChecked(true);