[gnome-photos/wip/rishi/edit-preview: 9/9] tool-filters: foo



commit 8a515c4aa77c20e4c39f1eff8ae1cd2d348a7f35
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 24 17:39:30 2015 +0100

    tool-filters: foo

 src/photos-tool-filters.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-tool-filters.c b/src/photos-tool-filters.c
index 3a17ae4..2368e78 100644
--- a/src/photos-tool-filters.c
+++ b/src/photos-tool-filters.c
@@ -109,8 +109,8 @@ photos_tool_filters_activate (PhotosTool *tool, PhotosBaseItem *item, GeglGtkVie
   if (self->buttons == NULL || self->create_preview_id != 0)
     return;
 
-  g_clear_object (&self->item);
-  self->item = g_object_ref (item);
+  if (self->item == NULL)
+    self->item = g_object_ref (item);
 
   self->create_preview_id = g_idle_add_full (G_PRIORITY_LOW, photos_tool_filters_create_preview_idle, self, 
NULL);
 }


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