aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/History.qml12
1 files changed, 11 insertions, 1 deletions
diff --git a/pages/History.qml b/pages/History.qml
index a8ae4c53..82d4abfb 100644
--- a/pages/History.qml
+++ b/pages/History.qml
@@ -633,7 +633,17 @@ Rectangle {
MoneroComponents.TextPlain {
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 15
- text: isout ? qsTr("Sent") : qsTr("Received") + translationManager.emptyString
+ text: {
+ if (!isout) {
+ return qsTr("Received") + translationManager.emptyString;
+ }
+ const addressBookName = currentWallet ? currentWallet.addressBook.getDescription(address) : null;
+ if (!addressBookName)
+ {
+ return qsTr("Sent") + translationManager.emptyString;
+ }
+ return addressBookName;
+ }
color: MoneroComponents.Style.historyHeaderTextColor
anchors.verticalCenter: parent.verticalCenter
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor