Verified Commit 199556fe authored by Linus Jahn's avatar Linus Jahn Committed by Jonah Brüchert

RosterModel: Fix sorting when updating roster item

parent 8628ee5b
Pipeline #12223 passed with stages
in 26 minutes and 19 seconds
......@@ -148,7 +148,7 @@ void RosterModel::addItem(const RosterItem &item)
// index where to add the new contact
int i = 0;
for (const auto &itrItem : qAsConst(m_items)) {
if (item > itrItem) {
if (item < itrItem) {
insertContact(i, item);
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