allow manual setting when disconnected

This commit is contained in:
ecdsa 2013-03-16 20:37:49 +01:00
parent cce4a6c001
commit a2ecc0e7bb

View file

@ -2179,7 +2179,7 @@ class ElectrumWindow(QMainWindow):
for p in protocol_letters:
i = protocol_letters.index(p)
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)
else:
server_protocol.model().setData(j, QtCore.QVariant(0,False), QtCore.Qt.UserRole-1)