diff --git a/src/plugins/mesonprojectmanager/project/ninjabuildstep.cpp b/src/plugins/mesonprojectmanager/project/ninjabuildstep.cpp index 931d7de2797..2070942c9e9 100644 --- a/src/plugins/mesonprojectmanager/project/ninjabuildstep.cpp +++ b/src/plugins/mesonprojectmanager/project/ninjabuildstep.cpp @@ -120,7 +120,7 @@ QWidget *NinjaBuildStep::createConfigWidget() connect(this, &NinjaBuildStep::commandChanged, this, updateDetails); - connect(this, &NinjaBuildStep::targetListChanged, this, updateTargetList); + connect(this, &NinjaBuildStep::targetListChanged, widget, updateTargetList); connect(toolArguments, &QLineEdit::textEdited, this, [this, updateDetails](const QString &text) { setCommandArgs(text);