diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-04-21 12:22:17 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-04-21 12:22:17 +0000 |
commit | 11d637f86913c51b8658e03d8e2dcd04a25ead7b (patch) | |
tree | a4c4ed9bac8dd381094bdb9585a42c367fe43ee5 | |
parent | 142984cbf7a78099b518ea18628d70269c978e04 (diff) | |
parent | ddeabc7e19e0e0e18acd842fa28dc9319b3a94cf (diff) | |
download | gtk+-11d637f86913c51b8658e03d8e2dcd04a25ead7b.tar.gz |
Merge branch 'wip/oholy/placesview-default-location-regression' into 'master'
placesview: Open location even if mount was not found
Closes nautilus#1811
See merge request GNOME/gtk!3435
-rw-r--r-- | gtk/gtkplacesview.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index 254724c75c..9a57a18492 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -1245,6 +1245,11 @@ server_mount_ready_cb (GObject *source_file, GMount *mount; GFile *root; + /* + * If the mount is not found at this point, it is probably user- + * invisible, which happens e.g for smb-browse, but the location + * should be opened anyway... + */ mount = g_file_find_enclosing_mount (location, view->cancellable, NULL); if (mount) { @@ -1255,6 +1260,10 @@ server_mount_ready_cb (GObject *source_file, g_object_unref (root); g_object_unref (mount); } + else + { + emit_open_location (view, location, view->open_flags); + } } } |