Commit afa9da2a authored by dt's avatar dt

Also save before running if Project::hasNoBuildSettings

Fixes a QML bug
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent a44e33ac
......@@ -1554,7 +1554,9 @@ void ProjectExplorerPlugin::runProjectImpl(Project *pro)
d->m_buildManager->buildProjects(projects, configurations(projects));
}
} else {
executeRunConfiguration(pro->activeRunConfiguration(), ProjectExplorer::Constants::RUNMODE);
// TODO this ignores RunConfiguration::isEnabled()
if (saveModifiedFiles())
executeRunConfiguration(pro->activeRunConfiguration(), ProjectExplorer::Constants::RUNMODE);
}
}
......@@ -1579,7 +1581,9 @@ void ProjectExplorerPlugin::debugProject()
updateRunAction();
}
} else {
executeRunConfiguration(pro->activeRunConfiguration(), ProjectExplorer::Constants::DEBUGMODE);
// TODO this ignores RunConfiguration::isEnabled()
if (saveModifiedFiles())
executeRunConfiguration(pro->activeRunConfiguration(), ProjectExplorer::Constants::DEBUGMODE);
}
}
......
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