aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-02-22 02:59:53 +0800
committerMilan Crha <mcrha@redhat.com>2013-02-22 02:59:53 +0800
commitb1fc3c595800bab269274419e889690b024e9e0e (patch)
tree4d8d17b49feba190fd8472fa02e6a9d588a6e614 /calendar
parente667bac9f91272c057072ed1286f3f8fd4e29ff7 (diff)
downloadgsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar.gz
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar.bz2
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar.lz
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar.xz
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.tar.zst
gsoc2013-evolution-b1fc3c595800bab269274419e889690b024e9e0e.zip
Bug #693420 - Crash when adding contact list as attendee
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);
}
}