forked from qt-creator/qt-creator
Debugger: Don't auto-enable QML debugging if LANG_QMLJS isn't set
Change-Id: Id2734ed9615e6c4035d2eacb5bf57dbb2d5029e4 Task-number: QTCREATORBUG-15490 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -253,6 +253,10 @@ bool DebuggerRunConfigurationAspect::useCppDebugger() const
|
||||
bool DebuggerRunConfigurationAspect::useQmlDebugger() const
|
||||
{
|
||||
if (m_useQmlDebugger == DebuggerRunConfigurationAspect::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)
|
||||
@@ -267,9 +271,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 m_useQmlDebugger == DebuggerRunConfigurationAspect::EnabledLanguage;
|
||||
}
|
||||
|
Reference in New Issue
Block a user