summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-21 15:36:39 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-04-21 15:36:39 +0000
commit8bbaa7d09267a0ce23b211232b7b50b95b383326 (patch)
tree30dde3d8c6e0d5becc1e4abd56b64c11aa29fe5d
parentca6794b2d886bde1a0d8aa2a38c7d25d3c96291d (diff)
parent4fe7b3ec25a1a82e0682963a26bbe642072b4fa0 (diff)
downloadgtk+-8bbaa7d09267a0ce23b211232b7b50b95b383326.tar.gz
Merge branch 'wip/oholy/placesview-default-location-regression-gtk-3-34' into 'gtk-3-24'
placesview: Open location even if mount was not found See merge request GNOME/gtk!3465
-rw-r--r--gtk/gtkplacesview.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 62eb5d0914..89f7acef2c 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1267,6 +1267,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, priv->cancellable, NULL);
if (mount)
{
@@ -1277,6 +1282,10 @@ server_mount_ready_cb (GObject *source_file,
g_object_unref (root);
g_object_unref (mount);
}
+ else
+ {
+ emit_open_location (view, location, priv->open_flags);
+ }
}
}