[shotwell/shotwell-0.26] Fix folder sidebar with DAV



commit 59d417e30d761bf7a408cdf97e1a4d3d28ca2467
Author: Jens Georg <mail jensge org>
Date:   Sat Jan 13 21:48:28 2018 +0100

    Fix folder sidebar with DAV
    
    Shotwell tried to go up to the root folder, but if a concrete path is
    mounted, the parent might not have a path associated
    
    So we stop if there is either no parent or the parent does not have a
    local mount representation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792498

 src/folders/Branch.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/folders/Branch.vala b/src/folders/Branch.vala
index d14a148..575a609 100644
--- a/src/folders/Branch.vala
+++ b/src/folders/Branch.vala
@@ -76,7 +76,7 @@ public class Folders.Branch : Sidebar.Branch {
         
         // add the path elements in reverse order up to home directory
         File? parent = file.get_parent();
-        while (parent != null) {
+        while (parent != null && parent.get_path() != null) {
             // don't process paths above the user's home directory
             if (parent.equal(home_dir.get_parent()))
                 break;


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