Only disconnect signals when we actually have search engines
This commit is contained in:
parent
68f00fb31c
commit
c02e181750
1 changed files with 9 additions and 6 deletions
|
@ -1024,12 +1024,15 @@ static void
|
|||
midori_search_action_treeview_destroy_cb (GtkWidget* treeview,
|
||||
MidoriSearchAction* search_action)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (
|
||||
search_action->search_engines,
|
||||
midori_search_action_dialog_engines_add_item_cb, search_action);
|
||||
g_signal_handlers_disconnect_by_func (
|
||||
search_action->search_engines,
|
||||
midori_search_action_dialog_engines_remove_item_cb, search_action);
|
||||
if (search_action->search_engines)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (
|
||||
search_action->search_engines,
|
||||
midori_search_action_dialog_engines_add_item_cb, search_action);
|
||||
g_signal_handlers_disconnect_by_func (
|
||||
search_action->search_engines,
|
||||
midori_search_action_dialog_engines_remove_item_cb, search_action);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue