Avoid having no main frame, this fixes a g_signal_connect warning

This commit is contained in:
Christian Dywan 2009-03-04 02:03:38 +01:00
parent 5e458d2a5a
commit d9f90f13e6

View file

@ -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,