From a8fe063726b6136ebb71cb372b3bfee399f04662 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 16 Jul 2013 15:48:27 -0400 Subject: [PATCH] util: Fix hasPendingMessages While the UserVerifier does indeed have a _userVerifier inside it, the hasPendingMessages property is on ourselves, not _userVerifier. https://bugzilla.gnome.org/show_bug.cgi?id=704347 --- js/gdm/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/gdm/util.js b/js/gdm/util.js index cae3e1b23..c79958de6 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -163,7 +163,7 @@ const ShellUserVerifier = new Lang.Class({ }, answerQuery: function(serviceName, answer) { - if (!this._userVerifier.hasPendingMessages) { + if (!this.hasPendingMessages) { this._clearMessageQueue(); this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null); } else { @@ -423,7 +423,7 @@ const ShellUserVerifier = new Lang.Class({ this._failCounter < this._settings.get_int(ALLOWED_FAILURES_KEY); if (canRetry) { - if (!this._userVerifier.hasPendingMessages) { + if (!this.hasPendingMessages) { this._retry(); } else { let signalId = this._userVerifier.connect('no-more-messages', @@ -433,7 +433,7 @@ const ShellUserVerifier = new Lang.Class({ })); } } else { - if (!this._userVerifier.hasPendingMessages) { + if (!this.hasPendingMessages) { this._cancelAndReset(); } else { let signalId = this._userVerifier.connect('no-more-messages',