Skip to content
Snippets Groups Projects
Commit edd1e84b authored by dt's avatar dt
Browse files

Fixes: Restore and save settings for RunSettings.

Details:  Not the most pressing problem, but easy to fix.
parent 208e50f1
No related branches found
No related tags found
No related merge requests found
...@@ -87,11 +87,15 @@ ProjectExplorer::Environment CMakeRunConfiguration::environment() const ...@@ -87,11 +87,15 @@ ProjectExplorer::Environment CMakeRunConfiguration::environment() const
void CMakeRunConfiguration::save(ProjectExplorer::PersistentSettingsWriter &writer) const void CMakeRunConfiguration::save(ProjectExplorer::PersistentSettingsWriter &writer) const
{ {
ProjectExplorer::ApplicationRunConfiguration::save(writer); ProjectExplorer::ApplicationRunConfiguration::save(writer);
writer.saveValue("CMakeRunConfiguration.Target", m_target);
writer.saveValue("CMakeRunConfiguration.WorkingDirectory", m_workingDirectory);
} }
void CMakeRunConfiguration::restore(const ProjectExplorer::PersistentSettingsReader &reader) void CMakeRunConfiguration::restore(const ProjectExplorer::PersistentSettingsReader &reader)
{ {
ProjectExplorer::ApplicationRunConfiguration::restore(reader); ProjectExplorer::ApplicationRunConfiguration::restore(reader);
m_target = reader.restoreValue("CMakeRunConfiguration.Target").toString();
m_workingDirectory = reader.restoreValue("CMakeRunConfiguration.WorkingDirectory").toString();
} }
QWidget *CMakeRunConfiguration::configurationWidget() QWidget *CMakeRunConfiguration::configurationWidget()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment