color: Do not attempt to delete the device if it's already added

This was always a workaround for a bug in colord, and we dep on a high enough
version now.
This commit is contained in:
Richard Hughes 2011-08-24 12:33:11 +01:00
parent 37eef8abac
commit 76a21bdb54

View file

@ -1700,9 +1700,6 @@ gcm_prefs_device_added_cb (CdClient *client,
CdDevice *device,
CcColorPanel *prefs)
{
/* remove the saved device if it's already there */
gcm_prefs_remove_device (prefs, device);
/* add the device */
gcm_prefs_add_device (prefs, device);
}