Commit 1bff9f82 authored by Tobias Hunger's avatar Tobias Hunger

Devicemanager: Do not ruin device settings when closing optionspage

Change-Id: I3684422f9d41eba3bda8532c58242eca7edef67b
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
Reviewed-by: default avatarEike Ziller <>
parent c708944a
......@@ -135,6 +135,8 @@ void DeviceManager::copy(const DeviceManager *source, DeviceManager *target, boo
void DeviceManager::save()
if (d->clonedInstance == this)
QVariantMap data;
data.insert(QLatin1String(DeviceManagerKey), toMap());
d->writer->save(data, Core::ICore::mainWindow());
......@@ -342,7 +344,8 @@ DeviceManager::DeviceManager(bool isInstance) : d(new DeviceManagerPrivate)
delete d->writer;
if (d->clonedInstance != this)
delete d->writer;
delete d;
Markdown is supported
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