Commit 7b7a9a17 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
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
parent 1e947b63
Pipeline #210307 passed with stage
in 2 minutes and 9 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