Browse Source

allow manual setting when disconnected

283
ecdsa 12 years ago
parent
commit
a2ecc0e7bb
  1. 2
      gui/gui_classic.py

2
gui/gui_classic.py

@ -2179,7 +2179,7 @@ class ElectrumWindow(QMainWindow):
for p in protocol_letters: for p in protocol_letters:
i = protocol_letters.index(p) i = protocol_letters.index(p)
j = server_protocol.model().index(i,0) j = server_protocol.model().index(i,0)
if p not in pp.keys(): if p not in pp.keys() and interface.is_connected:
server_protocol.model().setData(j, QtCore.QVariant(0), QtCore.Qt.UserRole-1) server_protocol.model().setData(j, QtCore.QVariant(0), QtCore.Qt.UserRole-1)
else: else:
server_protocol.model().setData(j, QtCore.QVariant(0,False), QtCore.Qt.UserRole-1) server_protocol.model().setData(j, QtCore.QVariant(0,False), QtCore.Qt.UserRole-1)

Loading…
Cancel
Save