[nautilus] gtkplacesview: Update to the latest code



commit cba5beec5289050a9a882223510a6a6d88a3af94
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Apr 22 10:57:57 2021 +0200

    gtkplacesview: Update to the latest code
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1811

 src/gtk/nautilusgtkplacesview.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/gtk/nautilusgtkplacesview.c b/src/gtk/nautilusgtkplacesview.c
index ae35daa60..b38777f2a 100644
--- a/src/gtk/nautilusgtkplacesview.c
+++ b/src/gtk/nautilusgtkplacesview.c
@@ -1266,6 +1266,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)
             {
@@ -1276,6 +1281,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);
+            }
         }
     }
 


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