Push_modal failure tentative three...

master
xSmurf 7 years ago
parent f6b8712712
commit a739a92eb4

@ -603,17 +603,17 @@ const PromptDialog = new Lang.Class({
}, },
onAllow: function() { onAllow: function() {
if (this.cbClose !== undefined && this.cbClose !== null) { //if (this.cbClose !== undefined && this.cbClose !== null) {
this.cbClose(); // this.cbClose();
} //}
this.close(); this.close();
this.sendReturnValue(true); this.sendReturnValue(true);
}, },
onDeny: function() { onDeny: function() {
if (this.cbClose !== undefined && this.cbClose !== null) { //if (this.cbClose !== undefined && this.cbClose !== null) {
this.cbClose(); // this.cbClose();
} //}
this.close(); this.close();
this.sendReturnValue(false); 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 = 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.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(); this._dialog.open();
} catch (err) { } catch (err) {
log("SGFW: Error while creating prompt: " + err); log("SGFW: Error while creating prompt: " + err);
@ -194,7 +195,7 @@ const FirewallPromptHandler = new Lang.Class({
this._dialog.close(); this._dialog.close();
this._dialog.destroy(); this._dialog.destroy();
} catch (err) { } catch (err) {
log("SGFW: Unable to close/destroy modal..."); log("SGFW: Error unable to close/destroy modal...");
} }
this._dialog = null; this._dialog = null;
if (this._dialogs.length > 0) { if (this._dialogs.length > 0) {

Loading…
Cancel
Save