[gnome-photos/wip/rishi/collection: 33/43] base-item: Assert that an item that can't be edited, actually isn't
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 33/43] base-item: Assert that an item that can't be edited, actually isn't
- Date: Wed, 31 Jan 2018 19:35:10 +0000 (UTC)
commit ac76c9aa0e8adc4d7818dfff7f6e5bd41f28faf2
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 24 14:35:34 2018 +0100
base-item: Assert that an item that can't be edited, actually isn't
src/photos-base-item.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 5bab0ab2..15272379 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1745,6 +1745,9 @@ photos_base_item_pipeline_is_edited_load_pipeline (GObject *source_object, GAsyn
is_edited = photos_pipeline_is_edited (pipeline);
g_task_return_boolean (task, is_edited);
+ if (!photos_base_item_can_edit (self))
+ g_return_if_fail (!is_edited);
+
out:
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]