diff options
Diffstat (limited to 'lib/bluetooth-settings-widget.c')
-rw-r--r-- | lib/bluetooth-settings-widget.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c index ac1c9baa..8577b0f4 100644 --- a/lib/bluetooth-settings-widget.c +++ b/lib/bluetooth-settings-widget.c @@ -917,7 +917,11 @@ create_callback (GObject *source_object, turn_off_pairing (user_data, path); dbus_error = g_dbus_error_get_remote_error (error); - if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationCanceled") != 0) { + if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationFailed") == 0) { + //FIXME pairing failed because we entered the wrong code + } else if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationCanceled") == 0) { + //FIXME pairing was cancelled + } else { //FIXME show an error? /* translators: * The ā%sā is the device name, for example: |