Only disconnect signals when we actually have search engines

This commit is contained in:
Christian Dywan 2009-02-28 14:02:36 +01:00
parent 68f00fb31c
commit c02e181750

View file

@ -1023,6 +1023,8 @@ midori_search_action_dialog_engines_remove_item_cb (KatzeArray* list,
static void static void
midori_search_action_treeview_destroy_cb (GtkWidget* treeview, midori_search_action_treeview_destroy_cb (GtkWidget* treeview,
MidoriSearchAction* search_action) MidoriSearchAction* search_action)
{
if (search_action->search_engines)
{ {
g_signal_handlers_disconnect_by_func ( g_signal_handlers_disconnect_by_func (
search_action->search_engines, search_action->search_engines,
@ -1031,6 +1033,7 @@ midori_search_action_treeview_destroy_cb (GtkWidget* treeview,
search_action->search_engines, search_action->search_engines,
midori_search_action_dialog_engines_remove_item_cb, search_action); midori_search_action_dialog_engines_remove_item_cb, search_action);
} }
}
/** /**
* midori_search_action_get_dialog: * midori_search_action_get_dialog: