electrum

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

commit 5b9b6a931d0a05629511dd743a5ff326e80261ca
parent 9607854b67d3a8a59b569c904c85466fbb34a8bc
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 10 Dec 2018 08:04:54 +0100

qt network dialog: fix NodesListWidget if there is fork

undo part of 5473320ce459b3076d60f71dab490ed3a07b86a5

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

diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py @@ -100,6 +100,7 @@ class NodesListWidget(QTreeWidget): def update(self, network: Network): self.clear() + self.addChild = self.addTopLevelItem chains = network.get_blockchains() n_chains = len(chains) for chain_id, interfaces in chains.items(): @@ -117,7 +118,7 @@ class NodesListWidget(QTreeWidget): item = QTreeWidgetItem([i.host + star, '%d'%i.tip]) item.setData(0, Qt.UserRole, 0) item.setData(1, Qt.UserRole, i.server) - x.addTopLevelItem(item) + x.addChild(item) if n_chains > 1: self.addTopLevelItem(x) x.setExpanded(True)