From: Christian Dywan Date: Wed, 4 Mar 2009 01:03:38 +0000 (+0100) Subject: Avoid having no main frame, this fixes a g_signal_connect warning X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f90f13e6d7e651115949e578a7e6ea83bb2782;p=midori Avoid having no main frame, this fixes a g_signal_connect warning --- 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,