[shotwell/wip/phako/4927] Camera: Fix import from camera




commit 2b79bc5b5295958532dad530199d2bb9e6984d45
Author: Jens Georg <mail jensge org>
Date:   Sat May 29 11:04:45 2021 +0200

    Camera: Fix import from camera
    
    Fixes #4927

 src/camera/ImportPage.vala | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala
index 375e5cb0..b7c9716f 100644
--- a/src/camera/ImportPage.vala
+++ b/src/camera/ImportPage.vala
@@ -1330,8 +1330,12 @@ public class ImportPage : CheckerboardPage {
         
         if (fsid >= sifs.length)
             return null;
-        
-        return (GPhoto.CameraStorageInfoFields.BASE in sifs[fsid].fields) ? (string) sifs[fsid].basedir : 
"/";
+
+        if (GPhoto.CameraStorageInfoFields.BASE in sifs[fsid].fields) {
+            return (string) sifs[fsid].basedir;
+        } else {
+            return "/";
+        }
     }
     
     public static string? get_fulldir(GPhoto.Camera camera, string camera_name, int fsid, string folder) {


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