Don't set the session unless we actually have libSoup
This commit is contained in:
parent
0d73df50d2
commit
e5000a48e0
1 changed files with 2 additions and 0 deletions
|
@ -1492,8 +1492,10 @@ midori_view_construct_web_view (MidoriView* view)
|
||||||
|
|
||||||
view->web_view = webkit_web_view_new ();
|
view->web_view = webkit_web_view_new ();
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (view->web_view), "session"))
|
if (g_object_class_find_property (G_OBJECT_GET_CLASS (view->web_view), "session"))
|
||||||
|
#if HAVE_LIBSOUP
|
||||||
g_object_set (view->web_view, "session",
|
g_object_set (view->web_view, "session",
|
||||||
katze_net_get_session (view->net), NULL);
|
katze_net_get_session (view->net), NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
web_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view->web_view));
|
web_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view->web_view));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue