Commit c2d1fbbe authored by Laurent Montel's avatar Laurent Montel 😁

Use Akonadi::ServerManager::agentServiceName

parent 3455e85a
......@@ -34,10 +34,9 @@
void KNoteUtils::updateConfiguration()
{
QString service = QStringLiteral("org.freedesktop.Akonadi.Agent.akonadi_notes_agent");
if (Akonadi::ServerManager::hasInstanceIdentifier()) {
service += QLatin1Char('.') + Akonadi::ServerManager::instanceIdentifier();
}
QString service = Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Agent,
QStringLiteral("akonadi_notes_agent"));
QDBusInterface interface(service, QStringLiteral("/NotesAgent"));
if (interface.isValid()) {
interface.call(QStringLiteral("configurationChanged"));
......
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