diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js index 0729b9f73d..5428d09ea5 100644 --- a/js/ui/polkitAuthenticationAgent.js +++ b/js/ui/polkitAuthenticationAgent.js @@ -473,8 +473,8 @@ var AuthenticationDialog = GObject.registerClass({ cancel() { this._wasDismissed = true; - this.close(global.get_current_time()); this._emitDone(true); + this.close(global.get_current_time()); } _onDialogClosed() {