[gtk: 1/4] places: Fix crash when disconnecting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/4] places: Fix crash when disconnecting
- Date: Fri, 9 Sep 2022 14:59:04 +0000 (UTC)
commit ff84b96480dd965095a9e910443350dbc0e8d96a
Author: Corey Berla <corey berla me>
Date: Wed Apr 27 12:16:11 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.
gtk/gtkplacesview.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index cb13276513..a8ac3613a4 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1319,6 +1319,7 @@ volume_mount_ready_cb (GObject *source_volume,
return;
}
+ view->row_for_action = NULL;
view->mounting_volume = FALSE;
update_loading (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]