[shotwell/wip/faster-import: 4/5] wip: Get prefetched copy after setting the developer



commit 0f8bac9b52cdf4792768e55e106bbf975496f327
Author: Jens Georg <mail jensge org>
Date:   Wed Oct 12 16:20:09 2016 +0200

    wip: Get prefetched copy after setting the developer
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/Photo.vala |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/Photo.vala b/src/Photo.vala
index 6b7c449..57b74f7 100644
--- a/src/Photo.vala
+++ b/src/Photo.vala
@@ -813,12 +813,6 @@ public abstract class Photo : PhotoSource, Dateable {
             // Perform development, bail out if it doesn't work.
             if (!is_raw_developer_complete(d)) {
                 develop_photo(d);
-                try {
-                    get_prefetched_copy();
-                } catch (Error e) {
-                    // couldn't reload the freshly-developed image, nothing to display
-                    return;
-                }
             }
             if (!developments.has_key(d))
                 return; // we tried!
@@ -830,7 +824,14 @@ public abstract class Photo : PhotoSource, Dateable {
             row.developer = d;
             backing_photo_row = developments.get(d);
             readers.developer = backing_photo_row.file_format.create_reader(backing_photo_row.filepath);
-            
+
+                 try {
+                    get_prefetched_copy();
+                } catch (Error e) {
+                    // couldn't reload the freshly-developed image, nothing to display
+                    return;
+                }
+
             set_orientation(backing_photo_row.original_orientation);
             
             try {


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