aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-meeting-store.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c
index d1f2d6acb7..4d53037d5a 100644
--- a/calendar/gui/e-meeting-store.c
+++ b/calendar/gui/e-meeting-store.c
@@ -1105,12 +1105,13 @@ e_meeting_store_remove_attendee (EMeetingStore *store,
}
if (row != -1) {
+ g_ptr_array_remove_index (store->priv->attendees, row);
+
path = gtk_tree_path_new ();
gtk_tree_path_append_index (path, row);
gtk_tree_model_row_deleted (GTK_TREE_MODEL (store), path);
gtk_tree_path_free (path);
- g_ptr_array_remove_index (store->priv->attendees, row);
g_object_unref (attendee);
}
}
@@ -1129,13 +1130,13 @@ e_meeting_store_remove_all_attendees (EMeetingStore *store)
GtkTreePath *path;
attendee = g_ptr_array_index (store->priv->attendees, k);
+ g_ptr_array_remove_index (store->priv->attendees, k);
path = gtk_tree_path_new ();
gtk_tree_path_append_index (path, k);
gtk_tree_model_row_deleted (GTK_TREE_MODEL (store), path);
gtk_tree_path_free (path);
- g_ptr_array_remove_index (store->priv->attendees, k);
g_object_unref (attendee);
}
}