From 80f2bf7c0933db14b89ee5e0d47eafa6e871ca1f Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 17 Oct 2022 16:43:38 +0200 Subject: [PATCH] qml: incoming flag not always correct for determining debit/credit. Use 'value' instead --- electrum/gui/qml/components/controls/HistoryItemDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml index 512c24bec..952bee4ba 100644 --- a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml +++ b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml @@ -84,7 +84,7 @@ Item { font.pixelSize: constants.fontSizeMedium Layout.alignment: Qt.AlignRight font.bold: true - color: model.incoming ? constants.colorCredit : constants.colorDebit + color: model.value.satsInt >= 0 ? constants.colorCredit : constants.colorDebit function updateText() { text = Config.formatSats(model.value)