From 4ab9bd74e7fef2d7bac50220bf9c276c494091d3 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 19 Feb 2009 23:36:04 +0100 Subject: [PATCH] Check if there really is a SearchAction proxy --- midori/midori-searchaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5