Bluetooth: don't restrict the length of non numeric PINs

The protocol restriction is only for numeric PINs (passkeys, in bluez
jargon). For passwords, any length is allowed.

https://bugzilla.gnome.org/show_bug.cgi?id=683356
This commit is contained in:
Giovanni Campagna 2012-08-31 19:56:45 +02:00
parent 5c990f103e
commit 3710b88ab9

View File

@ -456,7 +456,10 @@ const PinNotification = new Lang.Class({
_canActivateOkButton: function() {
// PINs have a fixed length of 6
return this._entry.clutter_text.text.length == 6;
if (this._numeric)
return this._entry.clutter_text.text.length == 6;
else
return true;
},
grabFocus: function(lockTray) {