[gnome-photos/wip/rishi/item-manager: 2/11] item-manager: Assert that new items don't have hidden URNs
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/item-manager: 2/11] item-manager: Assert that new items don't have hidden URNs
- Date: Fri, 19 Aug 2016 20:17:27 +0000 (UTC)
commit ff7eebe2058673254634818aae433c7e77748a23
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Aug 15 11:46:17 2016 +0200
item-manager: Assert that new items don't have hidden URNs
https://bugzilla.gnome.org/show_bug.cgi?id=770157
src/photos-item-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 993e8d5..bc24a0b 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -151,9 +151,13 @@ static void
photos_item_manager_item_created (PhotosItemManager *self, const gchar *urn)
{
GApplication *app;
+ PhotosBaseItem *old_hidden_item;
PhotosSearchContextState *state;
PhotosSingleItemJob *job;
+ old_hidden_item = PHOTOS_BASE_ITEM (g_hash_table_lookup (self->hidden_items, urn));
+ g_return_if_fail (old_hidden_item == NULL);
+
app = g_application_get_default ();
state = photos_search_context_get_state (PHOTOS_SEARCH_CONTEXT (app));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]