Don't crash if one tries to debug a qml project

Quick fix. Actually there should be IMO no way to start the debugger
for a qmlproject in the frist place.
This commit is contained in:
Kai Koehne
2009-12-16 11:48:35 +01:00
parent a014c02cbd
commit 29051539ef

View File

@@ -131,8 +131,9 @@ DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager,
break;
}
if (const ProjectExplorer::Project *project = runConfiguration->project()) {
m_startParameters->buildDir =
project->activeBuildConfiguration()->buildDirectory();
if (project->activeBuildConfiguration())
m_startParameters->buildDir =
project->activeBuildConfiguration()->buildDirectory();
}
m_startParameters->useTerminal =
runConfiguration->runMode() == LocalApplicationRunConfiguration::Console;