1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00

gtk/placessidebar: Disconnect bookmarks signal after the sidebar is gone

This was a small oversight in [1] that causes crashes when trying to
drag and drop new bookmarks after opening a new window and closing
the old one.

[1] 26480b7017
This commit is contained in:
Khalid Abu Shawarib 2024-06-15 23:52:54 +03:00
parent d196abfe47
commit 8ba056abd1

View File

@ -3431,7 +3431,9 @@ nautilus_gtk_places_sidebar_init (NautilusGtkPlacesSidebar *sidebar)
NautilusApplication *app = NAUTILUS_APPLICATION (g_application_get_default ());
sidebar->bookmark_list = nautilus_application_get_bookmarks (app);
g_signal_connect_swapped (sidebar->bookmark_list, "changed", G_CALLBACK (update_places), sidebar);
g_signal_connect_object (sidebar->bookmark_list, "changed",
G_CALLBACK (update_places), sidebar,
G_CONNECT_SWAPPED);
g_signal_connect_object (nautilus_trash_monitor_get (), "trash-state-changed",
G_CALLBACK (update_trash_icon), sidebar,