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.
This commit is contained in:
Christian Dywan 2009-09-16 23:48:06 +02:00
parent 9d1fdd7a05
commit e4ac13887d

View file

@ -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)