keyring: Actually ensure sensitivity when the keyring dialog opens

I misunderstood how the control flow for the keyring worked.

https://bugzilla.gnome.org/show_bug.cgi?id=690895
This commit is contained in:
Jasper St. Pierre 2012-12-28 03:20:18 -05:00
parent 3e6b794a33
commit 75d44dca6b

View File

@ -171,12 +171,14 @@ const KeyringDialog = new Lang.Class({
_onShowPassword: function(prompt) {
this._buildControlTable();
this._ensureOpen();
this._updateSensitivity(true);
this._passwordEntry.grab_key_focus();
},
_onShowConfirm: function(prompt) {
this._buildControlTable();
this._ensureOpen();
this._updateSensitivity(true);
this._continueButton.grab_key_focus();
},
@ -185,12 +187,10 @@ const KeyringDialog = new Lang.Class({
},
_onPasswordActivate: function() {
if (this.prompt.confirm_visible) {
this._updateSensitivity(true);
if (this.prompt.confirm_visible)
this._confirmEntry.grab_key_focus();
} else {
else
this._onContinueButton();
}
},
_onConfirmActivate: function() {