Commit 1786a3a6 authored by Jens Georg's avatar Jens Georg

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
parent 5125d2fb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment