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:
parent
9d1fdd7a05
commit
e4ac13887d
1 changed files with 1 additions and 1 deletions
|
@ -5807,7 +5807,7 @@ midori_browser_set_bookmarks (MidoriBrowser* browser,
|
||||||
g_signal_handlers_disconnect_by_func (
|
g_signal_handlers_disconnect_by_func (
|
||||||
browser->bookmarks, browser_bookmarks_add_item_cb, browser->bookmarkbar);
|
browser->bookmarks, browser_bookmarks_add_item_cb, browser->bookmarkbar);
|
||||||
g_signal_handlers_disconnect_by_func (
|
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)
|
if (bookmarks)
|
||||||
|
|
Loading…
Reference in a new issue