Commit ae66fa08 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

akonadi_control: fix regression in agent instance numbering

parent bc217324
......@@ -261,8 +261,8 @@ QString AgentManager::createAgentInstance(const QString &identifier)
return QString();
}
AgentType &agentInfo = mAgents[identifier];
agentInfo.instanceCounter++;
const AgentType agentInfo = mAgents[identifier];
mAgents[identifier].instanceCounter++;
const auto instance = createAgentInstance(agentInfo);
if (agentInfo.capabilities.contains(AgentType::CapabilityUnique)) {
......
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