Commit a6dec3fa authored by Bastien Nocera's avatar Bastien Nocera

settings-widget: Hide pairing dialogue when pairing fails

As can happen when inputting the pairing code wrong.
parent 5a0a6f3a
......@@ -910,6 +910,10 @@ create_callback (GObject *source_object,
return;
}
priv = BLUETOOTH_SETTINGS_WIDGET_GET_PRIVATE (user_data);
g_clear_pointer (&priv->pairing_dialog, gtk_widget_destroy);
turn_off_pairing (user_data, path);
dbus_error = g_dbus_error_get_remote_error (error);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment