Push_modal failure tentative three...

master
xSmurf 6 years ago
parent f6b8712712
commit a739a92eb4

@ -603,17 +603,17 @@ const PromptDialog = new Lang.Class({
},
onAllow: function() {
if (this.cbClose !== undefined && this.cbClose !== null) {
this.cbClose();
}
//if (this.cbClose !== undefined && this.cbClose !== null) {
// this.cbClose();
//}
this.close();
this.sendReturnValue(true);
},
onDeny: function() {
if (this.cbClose !== undefined && this.cbClose !== null) {
this.cbClose();
}
//if (this.cbClose !== undefined && this.cbClose !== null) {
// this.cbClose();
//}
this.close();
this.sendReturnValue(false);
},

@ -182,6 +182,7 @@ const FirewallPromptHandler = new Lang.Class({
this._dialog = new Dialog.PromptDialog(invocation, (pid >= 0), (sandbox != ""), tlsguard, cbfn);
this._dialog.update(app, icon, path, address, port, ip, origin, uid, gid, user, group, pid, proto, tlsguard, optstring, sandbox, expanded, expert, action);
this._dialog.connect("closed", Lang.bind(this, this.onCloseDialog));
this._dialog.open();
} catch (err) {
log("SGFW: Error while creating prompt: " + err);
@ -194,7 +195,7 @@ const FirewallPromptHandler = new Lang.Class({
this._dialog.close();
this._dialog.destroy();
} catch (err) {
log("SGFW: Unable to close/destroy modal...");
log("SGFW: Error unable to close/destroy modal...");
}
this._dialog = null;
if (this._dialogs.length > 0) {

Loading…
Cancel
Save