[gnome-photos] view-model: Don't use a possibly stale row reference
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-model: Don't use a possibly stale row reference
- Date: Sun, 14 Apr 2013 21:42:31 +0000 (UTC)
commit 5fd18021d1528a04781b051f591294c673d6d395
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Apr 14 15:25:48 2013 +0200
view-model: Don't use a possibly stale row reference
The row reference will be invalid if the item was removed from the
model.
src/photos-view-model.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/photos-view-model.c b/src/photos-view-model.c
index 8af1491..7519418 100644
--- a/src/photos-view-model.c
+++ b/src/photos-view-model.c
@@ -150,6 +150,7 @@ photos_view_model_info_updated (PhotosBaseItem *item, gpointer user_data)
photos_view_model_add_item (self, item);
}
+ row_ref = (GtkTreeRowReference *) g_object_get_data (G_OBJECT (item), priv->row_ref_key);
if (row_ref != NULL)
{
path = gtk_tree_row_reference_get_path (row_ref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]