mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-29 09:05:11 +01:00
merchant: fix payment tracker sorting
If the History page wasn't opened once before opening the Merchant page, sorting was messed up.
This commit is contained in:
parent
2d1882108f
commit
aa82615374
@ -507,6 +507,8 @@ TransactionHistorySortFilterModel *Wallet::historyModel() const
|
|||||||
m_historyModel->setTransactionHistory(this->history());
|
m_historyModel->setTransactionHistory(this->history());
|
||||||
m_historySortFilterModel = new TransactionHistorySortFilterModel(w);
|
m_historySortFilterModel = new TransactionHistorySortFilterModel(w);
|
||||||
m_historySortFilterModel->setSourceModel(m_historyModel);
|
m_historySortFilterModel->setSourceModel(m_historyModel);
|
||||||
|
m_historySortFilterModel->setSortRole(TransactionHistoryModel::TransactionBlockHeightRole);
|
||||||
|
m_historySortFilterModel->sort(0, Qt::DescendingOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_historySortFilterModel;
|
return m_historySortFilterModel;
|
||||||
|
Loading…
Reference in New Issue
Block a user