diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py index a1f2dace0..94ae77735 100644 --- 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)