diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index d27b1d59c..2170f12a7 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -761,7 +761,7 @@ var UnlockDialog = GObject.registerClass({ } _escape() { - if (this.allowCancel) + if (this._authPrompt && this.allowCancel) this._authPrompt.cancel(); }