summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-12-15 12:21:49 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2015-12-15 12:21:58 +0100
commitff60bf37c97b1ce398a7f8623ea108a2b4a1b313 (patch)
tree8a0af8ef7ac90863cc2f02a5dc20df5896ce3fdd /src/plugins/debugger/debuggerrunconfigurationaspect.cpp
parent75cfa50771323f7a2253888d651ff2b5cb36f16c (diff)
parentaa6fb0da41b51d82c13a35680762f5346c75bda9 (diff)
downloadqt-creator-ff60bf37c97b1ce398a7f8623ea108a2b4a1b313.tar.gz
Merge remote-tracking branch 'origin/3.6'
Change-Id: I8223551aec66539dd8c55262e5000c1621410334
Diffstat (limited to 'src/plugins/debugger/debuggerrunconfigurationaspect.cpp')
-rw-r--r--src/plugins/debugger/debuggerrunconfigurationaspect.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
index c4095912e8..3e4e3719d4 100644
--- a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
+++ b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
@@ -245,6 +245,10 @@ bool DebuggerRunConfigurationAspect::useCppDebugger() const
bool DebuggerRunConfigurationAspect::useQmlDebugger() const
{
if (d.useQmlDebugger == AutoEnabledLanguage) {
+ const Core::Context languages = runConfiguration()->target()->project()->projectLanguages();
+ if (!languages.contains(ProjectExplorer::Constants::LANG_QMLJS))
+ return false;
+
//
// Try to find a build step (qmake) to check whether qml debugging is enabled there
// (Using the Qt metatype system to avoid a hard qt4projectmanager dependency)
@@ -259,9 +263,7 @@ bool DebuggerRunConfigurationAspect::useQmlDebugger() const
}
}
- const Core::Context languages = runConfiguration()->target()->project()->projectLanguages();
- return languages.contains(ProjectExplorer::Constants::LANG_QMLJS)
- && !languages.contains(ProjectExplorer::Constants::LANG_CXX);
+ return !languages.contains(ProjectExplorer::Constants::LANG_CXX);
}
return d.useQmlDebugger == EnabledLanguage;
}