diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 4bfbde1bb..d77f797c0 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -328,11 +328,13 @@ var AuthenticationDialog = GObject.registerClass({ let resetDialog = () => { if (this.state != ModalDialog.State.OPENED) - return; + return GLib.SOURCE_REMOVE; this._passwordEntry.hide(); this._cancelButton.grab_key_focus(); this._okButton.reactive = false; + + return GLib.SOURCE_REMOVE; }; if (delay) {