fix set sorting

This commit is contained in:
ebbit1q 2026-02-24 05:23:18 +01:00
parent 2cb16c9fd0
commit 7615e96b54
3 changed files with 22 additions and 20 deletions

View file

@ -45,7 +45,7 @@ QVariant SetsModel::data(const QModelIndex &index, int role) const
switch (index.column()) {
case SortKeyCol:
return QString("%1").arg(set->getSortKey(), 8, 10, QChar('0'));
return QString("%1").arg(index.row(), 8, 10, QChar('0'));
case IsKnownCol:
return set->getIsKnown();
case SetTypeCol: