mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
AccountSwitcher: fix sort [2]
This commit is contained in:
parent
a972281c7a
commit
93bfb93fb3
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,9 @@ QVariant SubaddressAccountModel::parseSubaddressAccountRow(const Monero::Subaddr
|
|||
{
|
||||
switch (index.column()) {
|
||||
case Number:
|
||||
if (role == Qt::UserRole) {
|
||||
return index.row();
|
||||
}
|
||||
return QString("#%1").arg(QString::number(index.row()));
|
||||
case Address:
|
||||
return QString::fromStdString(row.getAddress());
|
||||
|
@ -152,4 +155,5 @@ Monero::SubaddressAccountRow* SubaddressAccountModel::entryFromIndex(const QMode
|
|||
SubaddressAccountProxyModel::SubaddressAccountProxyModel(QObject *parent)
|
||||
: QSortFilterProxyModel(parent)
|
||||
{
|
||||
setSortRole(Qt::UserRole);
|
||||
}
|
Loading…
Reference in a new issue