Commit c5178616 authored by Florian Müllner's avatar Florian Müllner

app: Hold application while showing connection dialog

The connection dialog may now be shown without the main window, so
make sure the application is kept alive while the dialog is showing.
parent 81cb33df
......@@ -378,12 +378,14 @@ const Application = new Lang.Class({
return;
}
this.hold();
this._connectionsDialog = new Connections.ConnectionsDialog();
this._connectionsDialog.widget.show();
this._connectionsDialog.widget.connect('response',
Lang.bind(this, function(widget) {
widget.destroy();
this._connectionsDialog = null;
this.release();
}));
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment