From: Christian Dywan Date: Thu, 19 Feb 2009 22:36:04 +0000 (+0100) Subject: Check if there really is a SearchAction proxy X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ab9bd74e7fef2d7bac50220bf9c276c494091d3;p=midori Check if there really is a SearchAction proxy --- diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index 67772f96..a7a16fc5 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -1070,7 +1070,8 @@ midori_search_action_get_dialog (MidoriSearchAction* search_action) return search_action->dialog; dialog_title = _("Manage Search Engines"); - toplevel = gtk_widget_get_toplevel (search_action->last_proxy); + toplevel = search_action->last_proxy ? + gtk_widget_get_toplevel (search_action->last_proxy) : NULL; dialog = gtk_dialog_new_with_buttons (dialog_title, toplevel ? GTK_WINDOW (toplevel) : NULL, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,