GNOME Bugzilla – Bug 788715
Can't discard all edits directly from the overview without previewing the BaseItem
Last modified: 2017-10-12 16:07:24 UTC
Steps to reproduce: (a) Edit a BaseItem (b) Click 'done' (c) Restart the application (d) Right-click the same BaseItem from the overview, without previewing it (e) Open the properties dialog (f) Click the "discard all edits" button It leads to a bunch of WARNINGs and CRITICALs: (gnome-photos:12638): GEGL-WARNING **: Output of gegl:nop 'proxynop-output' 0x7ff0fc026140 has no format (gnome-photos:12638): GEGL-WARNING **: Output of gegl:nop 'proxynop-output' 0x7ff0fc026140 has no format ** (gnome-photos:12638): CRITICAL **: photos_base_item_pipeline_save_async: assertion 'priv->edit_graph != NULL' failed The thumbnail is not updated, and if the application is restarted the old edits are still present.
Created attachment 361184 [details] [review] base-item: Assert that certain operations need a pre-loaded pipeline
Created attachment 361185 [details] [review] base-item: Process the graph after a revert only if the item is loaded
Created attachment 361186 [details] [review] base-item: Unbreak reverting directly from OVERVIEW without PREVIEW
Pushed to master. Let me know if there is something wrong.