From 081115e5e65bdbbf8cf1b98f1d656b6b0edb1287 Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Thu, 13 Nov 2014 12:38:59 +0100 Subject: [PATCH] qmakestep: correctly update qml debugging checkbox A change of the project languages (for example when the qml code model is updated, which happens quite late) can add or remove the QMLJS language, and thus change the value of linkQmlDebuggingLibrary. This should be shown in the UI. Change-Id: I55b6a866be6d0e356ed516568124bf3e80045078 Reviewed-by: Eike Ziller Reviewed-by: Kai Koehne --- src/plugins/qmakeprojectmanager/qmakestep.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmakeprojectmanager/qmakestep.cpp b/src/plugins/qmakeprojectmanager/qmakestep.cpp index e18ff27e6db..a38d9323874 100644 --- a/src/plugins/qmakeprojectmanager/qmakestep.cpp +++ b/src/plugins/qmakeprojectmanager/qmakestep.cpp @@ -484,6 +484,8 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step) this, SLOT(userArgumentsChanged())); connect(step, SIGNAL(linkQmlDebuggingLibraryChanged()), this, SLOT(linkQmlDebuggingLibraryChanged())); + connect(step->project(), &Project::projectLanguagesUpdated, + this, &QMakeStepConfigWidget::linkQmlDebuggingLibraryChanged); connect(step, &QMakeStep::useQtQuickCompilerChanged, this, &QMakeStepConfigWidget::useQtQuickCompilerChanged); connect(step->qmakeBuildConfiguration(), SIGNAL(qmakeBuildConfigurationChanged()),