Commit 273ef6b8 authored by Christian Mollekopf's avatar Christian Mollekopf Committed by Sandro Knauß
Browse files

If we only use one result that should be the limit for the query.

(cherry picked from commit fe0cc19dbbcd546cb36c799e0bfc1c14751a1a73)
parent 628a9c63
......@@ -679,7 +679,7 @@ void Controller::addPerson(const Person &person)
Baloo::PIM::CollectionQuery query;
query.setNamespace(QStringList() << QLatin1String("usertoplevel"));
query.pathMatches(QLatin1String("/Other Users/")+p.uid);
query.setLimit(2);
query.setLimit(1);
Baloo::PIM::ResultIterator it = query.exec();
Akonadi::Collection::List collections;
while (it.next()) {
......
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