[gnome-control-center] color: Do not attempt to delete the device if it's already added



commit 76a21bdb54591f9f683685b2527929fdda040487
Author: Richard Hughes <richard hughsie com>
Date:   Wed Aug 24 12:33:11 2011 +0100

    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.

 panels/color/cc-color-panel.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index dd5f187..17bb2b6 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]