Commit 4447e889 authored by Igor Poboiko's avatar Igor Poboiko
Browse files

Save configuration when creating resources for new user

Summary:
Akonadi calls `writeConfig` DBus method to save the configuration for newly
created resources, both via `firstrun` and `SpecialCollections` mechanisms.
This method is non-existent for all of the resources (it was deprecated in
KConfig, and apparently is not exported to DBus), method `save` should
be used instead.

This is related to issues raised in {D27905}: settings provided in firstrun did
not override default settings for the resource.

CCBUG: 345211
CCBUG: 352502

Test Plan:
1) Check `qdbus org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0 /Settings`
2) There is no `writeConfig` method, but there is `save` method

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28523
parent f51e623a
...@@ -189,7 +189,7 @@ void Firstrun::instanceCreated(KJob *job) ...@@ -189,7 +189,7 @@ void Firstrun::instanceCreated(KJob *job)
} }
} }
iface->call(QStringLiteral("writeConfig")); iface->call(QStringLiteral("save"));
instance.reconfigure(); instance.reconfigure();
instance.synchronize(); instance.synchronize();
......
...@@ -368,7 +368,7 @@ void DefaultResourceJobPrivate::resourceCreateResult(KJob *job) ...@@ -368,7 +368,7 @@ void DefaultResourceJobPrivate::resourceCreateResult(KJob *job)
} }
} }
conf.call(QStringLiteral("writeConfig")); conf.call(QStringLiteral("save"));
agent.reconfigure(); agent.reconfigure();
} }
......
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