diff options
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixes.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfixes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index b4a844b396..5c40ad9ce8 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -4783,8 +4783,9 @@ public: checkbox->setCheckState(Qt::Checked); }; using Column = CandidateTreeItem::Column; - const auto createConnections = [=](QCheckBox *checkbox, Column column) { - connect(checkbox, &QCheckBox::stateChanged, [setCheckStateForAll, column](int state) { + const auto createConnections = [this, setCheckStateForAll, preventPartiallyChecked]( + QCheckBox *checkbox, Column column) { + connect(checkbox, &QCheckBox::stateChanged, this, [setCheckStateForAll, column](int state) { if (state != Qt::PartiallyChecked) setCheckStateForAll(column, state); }); |