Fixes #57080
authorJP Rosevear <jpr@ximian.com>
Wed, 28 Apr 2004 14:01:01 +0000 (14:01 +0000)
committerJP Rosevear <jpr@src.gnome.org>
Wed, 28 Apr 2004 14:01:01 +0000 (14:01 +0000)
2004-04-28  JP Rosevear  <jpr@ximian.com>

Fixes #57080

* libedata-cal/e-cal-backend.c
(e_cal_backend_notify_object_modified): make sure the item was
actually in the query before so we don't send bogus removes

calendar/ChangeLog
calendar/libedata-cal/e-cal-backend.c

index 96fd700..4a6819b 100644 (file)
@@ -1,3 +1,11 @@
+2004-04-28  JP Rosevear  <jpr@ximian.com>
+
+       Fixes #57080
+       
+       * libedata-cal/e-cal-backend.c
+       (e_cal_backend_notify_object_modified): make sure the item was
+       actually in the query before so we don't send bogus removes
+
 2004-04-27  Harish Krishnaswamy  <kharish@novell.com>
 
        Fixes #56535
index 2d3f158..6a75c8b 100644 (file)
@@ -1046,7 +1046,7 @@ e_cal_backend_notify_object_modified (ECalBackend *backend,
                        e_data_cal_view_notify_objects_modified_1 (query, object);
                else if (new_match)
                        e_data_cal_view_notify_objects_added_1 (query, object);
-               else /* if (old_match) */ {
+               else if (old_match) {
                        icalcomponent *comp;
 
                        comp = icalcomponent_new_from_string ((char *)old_object);