Debugger: Don't check for QML language before project is parsed

Checking for QMLJS in the ctor of the aspect always returns false
for qt4project, since the project hasn't been parsed yet.

Change-Id: I41ce057bda4a1f2cb700e655645eae627990f3be
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Kai Koehne
2013-05-28 13:34:34 +02:00
parent 33659ebf98
commit acf72893c4

View File

@@ -314,10 +314,6 @@ void DebuggerRunConfigurationAspect::ctor()
{ {
connect(this, SIGNAL(debuggersChanged()), connect(this, SIGNAL(debuggersChanged()),
m_runConfiguration, SIGNAL(requestRunActionsUpdate())); m_runConfiguration, SIGNAL(requestRunActionsUpdate()));
setUseCppDebugger(m_runConfiguration->target()->project()->projectLanguages().contains(
ProjectExplorer::Constants::LANG_CXX));
setUseQmlDebugger(m_runConfiguration->target()->project()->projectLanguages().contains(
ProjectExplorer::Constants::LANG_QMLJS));
} }
} // namespace Debugger } // namespace Debugger