mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
bluetooth: Parse pins starting with 0 correctly
If we have a numeric PIN that starts with 0, it will be treated as an octal number rather than a number that just starts with 0.
This commit is contained in:
parent
280203158c
commit
8bd7003ea7
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ const PinNotification = new Lang.Class({
|
|||
|
||||
_ok: function() {
|
||||
if (this._numeric) {
|
||||
let num = parseInt(this._entry.text);
|
||||
let num = parseInt(this._entry.text, 10);
|
||||
if (isNaN(num)) {
|
||||
// user reply was empty, or was invalid
|
||||
// cancel the operation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue