Commit b26b1d49 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Merge branch 'release/21.08'

parents 3fdd93db baaf0c29
Pipeline #70223 passed with stage
in 6 minutes and 13 seconds
......@@ -1798,17 +1798,25 @@ int KFileItemModel::sortRoleCompare(const ItemData* a, const ItemData* b, const
auto valueB = b->values.value("count");
if (valueA.isNull()) {
if (valueB.isNull()) {
return 0;
result = 0;
break;
} else {
return -1;
result = -1;
break;
}
} else if (valueB.isNull()) {
return +1;
result = +1;
break;
} else {
if (valueA.toLongLong() < valueB.toLongLong()) {
return -1;
result = -1;
break;
} else if (valueA.toLongLong() > valueB.toLongLong()) {
result = +1;
break;
} else {
return +1;
result = 0;
break;
}
}
}
......
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