[gnome-photos] item-manager: Stop listening to updates if an item was cleared
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] item-manager: Stop listening to updates if an item was cleared
- Date: Mon, 22 Jan 2018 09:54:24 +0000 (UTC)
commit a17eacad96f653ab493f949043b300354399fbe8
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Jan 21 12:42:40 2018 +0100
item-manager: Stop listening to updates if an item was cleared
Fallout from 5497a7c67c13509da605bd51de1098101c7a40b7
https://bugzilla.gnome.org/show_bug.cgi?id=770342
src/photos-item-manager.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index f4a1aa67..b3847de2 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -1026,6 +1026,7 @@ photos_item_manager_clear (PhotosItemManager *self, PhotosWindowMode mode)
item1 = PHOTOS_BASE_ITEM (photos_base_manager_get_object_by_id (self->item_mngr_chldrn[0], id));
g_assert_true (item == item1);
+ g_signal_handlers_disconnect_by_func (item, photos_item_manager_info_updated, self);
photos_base_manager_remove_object_by_id (self->item_mngr_chldrn[0], id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]