offline interface: fix init
This commit is contained in:
parent
4a36f25d4b
commit
a0b86f405d
|
@ -211,7 +211,10 @@ class NetworkDialog(QDialog):
|
|||
|
||||
def do_exec(self):
|
||||
|
||||
if not self.exec_(): return
|
||||
if not self.exec_():
|
||||
self.config.set_key("server", None, True)
|
||||
self.config.set_key('auto_cycle', False, True)
|
||||
return
|
||||
|
||||
server = ':'.join([str( self.server_host.text() ),
|
||||
str( self.server_port.text() ),
|
||||
|
|
|
@ -433,6 +433,10 @@ class Interface(threading.Thread):
|
|||
self.bytes_received = 0
|
||||
self.is_connected = False
|
||||
|
||||
# init with None server, in case we are offline
|
||||
self.init_server(None, None)
|
||||
|
||||
|
||||
|
||||
|
||||
def init_interface(self):
|
||||
|
|
Loading…
Reference in New Issue