commit 7e353c33fe78c2a7e2e726f6341d1cd8ded543d5
parent dbbef771b39680b049b45e82457c4117b114c521
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 9 Jul 2017 12:11:46 +0200
add a star to server hostname in nodes list
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py
@@ -104,7 +104,8 @@ class NodesListWidget(QTreeWidget):
x.setData(1, Qt.UserRole, b.checkpoint)
for i in network.interfaces.values():
if i.blockchain == b:
- item = QTreeWidgetItem([i.host, '%d'%i.tip])
+ star = ' *' if i == network.interface else ''
+ item = QTreeWidgetItem([i.host + star, '%d'%i.tip])
item.setData(0, Qt.UserRole, 0)
item.setData(1, Qt.UserRole, i.server)
x.addChild(item)
@@ -112,7 +113,8 @@ class NodesListWidget(QTreeWidget):
x.setExpanded(True)
else:
for i in network.interfaces.values():
- item = QTreeWidgetItem([i.host, '%d'%i.tip])
+ star = ' *' if i == network.interface else ''
+ item = QTreeWidgetItem([i.host + star, '%d'%i.tip])
item.setData(0, Qt.UserRole, 0)
item.setData(1, Qt.UserRole, i.server)
self.addTopLevelItem(item)