Commit f5940b4b authored by Guillaume Desmottes's avatar Guillaume Desmottes

live_search_unmap: check if priv->hook_widget is not NULL

https://bugzilla.gnome.org/show_bug.cgi?id=692105
parent 43df222a
......@@ -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