Commit d11614d5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

Do not change the sorting among resources in the default backend

It would make us swap them unnecessarily, breaking the already curated
sorting.

BUG: 451667


(cherry picked from commit 7b7a9a17)
parent 6d268716
Pipeline #210308 passed with stage
in 1 minute and 51 seconds
......@@ -201,7 +201,7 @@ void ResourcesProxyModel::removeDuplicates(QVector<AbstractResource *> &resource
}
++it;
} else {
if ((*it)->backend() == cab) {
if ((*it)->backend() == cab && (*it)->backend() != (**at)->backend()) {
qSwap(*it, **at);
}
it = resources.erase(it);
......
Supports Markdown
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