diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index d04e1338801907c547f3a51de96bd6ee0e3f8d0f..acc2280d8dc555f25e9183a9dc07e4c626708f04 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -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); } }