offline interface: fix init

This commit is contained in:
thomasv 2013-08-01 11:31:33 +02:00
parent 4a36f25d4b
commit a0b86f405d
2 changed files with 8 additions and 1 deletions

View File

@ -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() ),

View File

@ -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):