Meson plugin: Fix segfault when switching build type

Change-Id: I837e0a7ba8dd731438d36cfb766fd60c9643be73
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alexis Jeandet
2021-02-03 22:14:10 +01:00
parent 3468d30286
commit 303008a09a

View File

@@ -120,7 +120,7 @@ QWidget *NinjaBuildStep::createConfigWidget()
connect(this, &NinjaBuildStep::commandChanged, this, updateDetails); 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) { connect(toolArguments, &QLineEdit::textEdited, this, [this, updateDetails](const QString &text) {
setCommandArgs(text); setCommandArgs(text);