forked from qt-creator/qt-creator
Also save before running if Project::hasNoBuildSettings
Fixes a QML bug Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user