Commit afa9da2a authored by dt's avatar dt
Browse files

Also save before running if Project::hasNoBuildSettings



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