forked from qt-creator/qt-creator
Project: Do not save unconfigured projects
This avoids having .user files when pressing cancel on the Project Mode's TargetSetupPage. Change-Id: I09fc8e78c929d6f09a50ee57ef4f59555491c649 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -301,7 +301,8 @@ void Project::saveSettings()
|
|||||||
emit aboutToSaveSettings();
|
emit aboutToSaveSettings();
|
||||||
if (!d->m_accessor)
|
if (!d->m_accessor)
|
||||||
d->m_accessor = new Internal::UserFileAccessor(this);
|
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()
|
bool Project::restoreSettings()
|
||||||
|
Reference in New Issue
Block a user