Fix inverted alphabetical device sorting order
QSortFilterProxyModel attempted to sort in ascending order but due to this issue, it instead ended up sorting in descending order.
This commit is contained in:
parent
88ba2acad9
commit
a9a3661cf3
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ bool DevicesSortProxyModel::lessThan(const QModelIndex &left, const QModelIndex
|
|||
QString nameLeft = model->data(left, DevicesModel::NameModelRole).toString();
|
||||
QString nameRight = model->data(right, DevicesModel::NameModelRole).toString();
|
||||
|
||||
return nameLeft > nameRight;
|
||||
return nameLeft < nameRight;
|
||||
}
|
||||
|
||||
bool DevicesSortProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
||||
|
|
Loading…
Reference in a new issue