mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
history: show pending on top
This commit is contained in:
parent
d8f9e7360f
commit
f012e4d968
2 changed files with 6 additions and 2 deletions
|
@ -239,7 +239,7 @@ ListView {
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
font.letterSpacing: -1
|
font.letterSpacing: -1
|
||||||
color: "#545454"
|
color: "#545454"
|
||||||
text: blockHeight
|
text: (typeof blockHeight != "undefined")? blockHeight : qsTr("Pending") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,11 @@ QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const
|
||||||
result = tInfo->fee();
|
result = tInfo->fee();
|
||||||
break;
|
break;
|
||||||
case TransactionBlockHeightRole:
|
case TransactionBlockHeightRole:
|
||||||
result = tInfo->blockHeight();
|
// Use NULL QVariant for transactions without height.
|
||||||
|
// Forces them to be displayed at top when sorted by blockHeight.
|
||||||
|
if (tInfo->blockHeight() != 0) {
|
||||||
|
result = tInfo->blockHeight();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TransactionHashRole:
|
case TransactionHashRole:
|
||||||
result = tInfo->hash();
|
result = tInfo->hash();
|
||||||
|
|
Loading…
Reference in a new issue