From 54db77787421ceb2ad2e5894d0553db26c8c8a96 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 22 Jul 2015 14:52:22 -0400 Subject: [PATCH] authPrompt: don't allow next if entry is empty Normally the user isn't allowed to proceed passed the username question until they've filled it in. To ensure this, the authprompt code desensitizes the next button when the number of characters change to zero. Unfortunately it fails to desensitize the next button up front when the entry starts out empty. This commit addresses that bug. https://bugzilla.gnome.org/show_bug.cgi?id=752739 --- js/gdm/authPrompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a5c6862a9..6e5c79f20 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -401,7 +401,7 @@ const AuthPrompt = new Lang.Class({ }, updateSensitivity: function(sensitive) { - this._updateNextButtonSensitivity(sensitive); + this._updateNextButtonSensitivity(sensitive && this._entry.text.length > 0); this._entry.reactive = sensitive; this._entry.clutter_text.editable = sensitive; },