From e4ac13887d976dfa726168cda089e2a0a79325c9 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 16 Sep 2009 23:48:06 +0200 Subject: [PATCH] Disconnect bookmark removal callback with the right data argument It would not actually disconnect before because it was disconnected with the wrong user data, and thus crash in a multiple window scenario when a bookmark was deleted. --- midori/midori-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index f406d929..649119e1 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -5807,7 +5807,7 @@ midori_browser_set_bookmarks (MidoriBrowser* browser, g_signal_handlers_disconnect_by_func ( browser->bookmarks, browser_bookmarks_add_item_cb, browser->bookmarkbar); g_signal_handlers_disconnect_by_func ( - browser->bookmarks, browser_bookmarks_remove_item_cb, browser->bookmarkbar); + browser->bookmarks, browser_bookmarks_remove_item_cb, browser); } if (bookmarks) -- 2.39.5