Commit 110293d4 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Project: Do not save unconfigured projects

This avoids having .user files when pressing cancel on the Project Mode's

Change-Id: I09fc8e78c929d6f09a50ee57ef4f59555491c649
Reviewed-by: default avatarDaniel Teske <>
parent 53969701
......@@ -301,7 +301,8 @@ void Project::saveSettings()
emit aboutToSaveSettings();
if (!d->m_accessor)
d->m_accessor = new Internal::UserFileAccessor(this);
d->m_accessor->saveSettings(toMap(), Core::ICore::mainWindow());
if (!targets().isEmpty())
d->m_accessor->saveSettings(toMap(), Core::ICore::mainWindow());
bool Project::restoreSettings()
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