summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-21 12:22:17 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-04-21 12:22:17 +0000
commit11d637f86913c51b8658e03d8e2dcd04a25ead7b (patch)
treea4c4ed9bac8dd381094bdb9585a42c367fe43ee5
parent142984cbf7a78099b518ea18628d70269c978e04 (diff)
parentddeabc7e19e0e0e18acd842fa28dc9319b3a94cf (diff)
downloadgtk+-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.c9
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);
+ }
}
}