From: Christian Dywan Date: Wed, 16 Sep 2009 21:48:06 +0000 (+0200) Subject: Disconnect bookmark removal callback with the right data argument X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4ac13887d976dfa726168cda089e2a0a79325c9;p=midori 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. --- 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)