fix set sorting (#6630)

This commit is contained in:
ebbit1q 2026-03-02 23:06:05 +01:00 committed by GitHub
parent f978407a19
commit e57ee8e9c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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: