electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 782bfd06e5ff1c6f5eb0ab70ea1ed966cf0d0f63
parent 9fd9703107a96bc3ef6d73ba896c49d700570dd1
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 26 Jun 2020 10:46:06 +0200

swaps: fix group_label

Diffstat:
Melectrum/gui/qt/history_list.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py @@ -295,7 +295,7 @@ class HistoryModel(CustomModel, Logger): child_data = dict(parent.get_data()) node1 = HistoryNode(self, child_data) parent.addChild(node1) - parent._data['label'] = tx_item.get('group_label') + parent._data['label'] = child_data.get('group_label') parent._data['bc_value'] = child_data.get('bc_value', Satoshis(0)) parent._data['ln_value'] = child_data.get('ln_value', Satoshis(0)) # add child to parent @@ -303,6 +303,8 @@ class HistoryModel(CustomModel, Logger): # update parent data parent._data['balance'] = tx_item['balance'] parent._data['value'] += tx_item['value'] + if 'group_label' in tx_item: + parent._data['label'] = tx_item['group_label'] if 'bc_value' in tx_item: parent._data['bc_value'] += tx_item['bc_value'] if 'ln_value' in tx_item: