Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 33d8b9c3 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning when we already have unique agent

parent 7d98d4bb
......@@ -190,7 +190,18 @@ void Firstrun::setupNext()
setupNext();
return;
}
if (type.capabilities().contains(QLatin1String("Unique"))) {
Q_FOREACH (const AgentInstance &agent, AgentManager::self()->instances()) {
if (agent.type() == type) {
// remember we set this one up already
KConfigGroup cfg(mConfig, "ProcessedDefaults");
cfg.writeEntry(agentCfg.readEntry("Id", QString()), agent.identifier());
cfg.sync();
setupNext();
return;
}
}
}
#ifndef KDEPIM_NO_KRESOURCES
// KDE5: remove me
// check if there is a kresource setup for this type already
......
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