[nautilus] places: Fix crash when disconnecting



commit 139363f799766c451569e9248078ce5af7c8ef85
Author: Corey Berla <corey berla me>
Date:   Thu Apr 21 10:18:55 2022 -0700

    places: Fix crash when disconnecting
    
    After disconnecting a network mount in places (when there's 2 or more
    mounts), right clicking another mount crashes the application.
    Set row_for_action to NULL when successfully unmounted.

 src/gtk/nautilusgtkplacesview.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gtk/nautilusgtkplacesview.c b/src/gtk/nautilusgtkplacesview.c
index fcd6d10f6..4cac82e69 100644
--- a/src/gtk/nautilusgtkplacesview.c
+++ b/src/gtk/nautilusgtkplacesview.c
@@ -1372,6 +1372,7 @@ unmount_ready_cb (GObject      *source_mount,
     return;
   }
 
+  view->row_for_action = NULL;
   view->unmounting_mount = FALSE;
   update_loading (view);
 


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