[gnome-shell/gnome-3-8] keyring: Fix button disabled when prompting for confirmation
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] keyring: Fix button disabled when prompting for confirmation
- Date: Wed, 8 May 2013 20:16:44 +0000 (UTC)
commit 30e9a2a7d0bbb8bd7633932a7222454a8eec2cf6
Author: Stef Walter <stefw gnome org>
Date: Wed Apr 17 12:02:12 2013 +0200
keyring: Fix button disabled when prompting for confirmation
https://bugzilla.gnome.org/show_bug.cgi?id=696304
js/ui/components/keyring.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js
index b38888f..ae67b55 100644
--- a/js/ui/components/keyring.js
+++ b/js/ui/components/keyring.js
@@ -143,8 +143,15 @@ const KeyringDialog = new Lang.Class({
},
_updateSensitivity: function(sensitive) {
- this._passwordEntry.reactive = sensitive;
- this._passwordEntry.clutter_text.editable = sensitive;
+ if (this._passwordEntry) {
+ this._passwordEntry.reactive = sensitive;
+ this._passwordEntry.clutter_text.editable = sensitive;
+ }
+
+ if (this._confirmEntry) {
+ this._confirmEntry.reactive = sensitive;
+ this._confirmEntry.clutter_text.editable = sensitive;
+ }
this._continueButton.can_focus = sensitive;
this._continueButton.reactive = sensitive;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]