Commit 34fc9df7 authored by Guillaume Desmottes's avatar Guillaume Desmottes

live_search_unmap: check if priv->hook_widget is not NULL
parent 6549ab30
......@@ -499,7 +499,9 @@ live_search_unmap (GtkWidget *widget)
gtk_widget_hide (widget);
gtk_entry_set_text (GTK_ENTRY (priv->search_entry), "");
gtk_widget_grab_focus (priv->hook_widget);
if (priv->hook_widget != NULL)
gtk_widget_grab_focus (priv->hook_widget);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment