Fix #1824.
When connected to a client, and then trying to connect to another, the connection manager component will be stopped(while the connect deferred is still running), so, the ConnectionManager.connection_manager reference will be deleted. If that's not the case, close the dialog.
This commit is contained in:
parent
f2249d5803
commit
6f3bc5620f
|
@ -498,6 +498,11 @@ class ConnectionManager(component.Component):
|
||||||
def __on_connected(self, daemon_info, host_id):
|
def __on_connected(self, daemon_info, host_id):
|
||||||
if self.gtkui_config["autoconnect"]:
|
if self.gtkui_config["autoconnect"]:
|
||||||
self.gtkui_config["autoconnect_host_id"] = host_id
|
self.gtkui_config["autoconnect_host_id"] = host_id
|
||||||
|
if self.running:
|
||||||
|
# When connected to a client, and then trying to connect to another,
|
||||||
|
# this component will be stopped(while the connect deferred is
|
||||||
|
# runing), so, self.connection_manager will be deleted.
|
||||||
|
# If that's not the case, close the dialog.
|
||||||
self.connection_manager.response(gtk.RESPONSE_OK)
|
self.connection_manager.response(gtk.RESPONSE_OK)
|
||||||
component.start()
|
component.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue