Commit 44d8b28a authored by Friedemann Kleint's avatar Friedemann Kleint

Fix crash after importing a Qt 4 project.

Reviewed-by: default avatardt <qtc-committer@nokia.com>
parent 33336bf2
......@@ -847,10 +847,12 @@ void Qt4Project::setToolChainType(const QString &buildConfiguration, ProjectExpl
void Qt4Project::updateActiveRunConfiguration()
{
if (!activeRunConfiguration()->isEnabled()) {
foreach (QSharedPointer<RunConfiguration> runConfiguration, runConfigurations()) {
const QSharedPointer<RunConfiguration> activeRunConfig = activeRunConfiguration();
if (!activeRunConfig.isNull() && !activeRunConfig->isEnabled()) {
foreach (const QSharedPointer<RunConfiguration> &runConfiguration, runConfigurations()) {
if (runConfiguration->isEnabled()) {
setActiveRunConfiguration(runConfiguration);
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment