mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
History: sort by blockheight for date ordering
This commit is contained in:
parent
c4beab7e57
commit
f291649ce2
1 changed files with 4 additions and 1 deletions
|
@ -146,7 +146,10 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionRow &tIn
|
||||||
case Column::Date:
|
case Column::Date:
|
||||||
{
|
{
|
||||||
if (role == Qt::UserRole) {
|
if (role == Qt::UserRole) {
|
||||||
return tInfo.timestamp();
|
if (tInfo.blockHeight() > 0) {
|
||||||
|
return tInfo.blockHeight();
|
||||||
|
}
|
||||||
|
return tInfo.timestamp().toMSecsSinceEpoch();
|
||||||
}
|
}
|
||||||
return tInfo.timestamp().toString(QString("%1 %2 ").arg(conf()->get(Config::dateFormat).toString(),
|
return tInfo.timestamp().toString(QString("%1 %2 ").arg(conf()->get(Config::dateFormat).toString(),
|
||||||
conf()->get(Config::timeFormat).toString()));
|
conf()->get(Config::timeFormat).toString()));
|
||||||
|
|
Loading…
Reference in a new issue