From d9f90f13e6d7e651115949e578a7e6ea83bb2782 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 4 Mar 2009 02:03:38 +0100 Subject: [PATCH] Avoid having no main frame, this fixes a g_signal_connect warning --- midori/midori-view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index a4d6d830..228b9fb4 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1563,6 +1563,8 @@ midori_view_construct_web_view (MidoriView* view) katze_net_get_session (view->net), NULL); #endif + /* Load something to avoid a bug where WebKit might not set a main frame */ + webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), ""); web_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view->web_view)); g_object_connect (view->web_view, -- 2.39.5