[shotwell] Sort camera file list before matching



commit ce27ab01d7a019444263341b84bba3c474ad4df6
Author: Jens Georg <mail jensge org>
Date:   Mon Jul 17 20:40:53 2017 +0200

    Sort camera file list before matching
    
    RAW + JPEG file matching uses a sliding window of two. Sometimes it
    seems to not being able to find the matching JPEG even if it is there.
    Sort the list to increase the chance of the files matching up.

 src/camera/ImportPage.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala
index 1af9f6e..c4fe39c 100644
--- a/src/camera/ImportPage.vala
+++ b/src/camera/ImportPage.vala
@@ -1402,6 +1402,7 @@ public class ImportPage : CheckerboardPage {
             
             return true;
         }
+        files.sort();
 
         for (int ctr = 0; ctr < files.count(); ctr++) {
             string filename;


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