Don't set the session unless we actually have libSoup

This commit is contained in:
Christian Dywan 2009-02-14 02:32:01 +01:00
parent 0d73df50d2
commit e5000a48e0

View file

@ -1492,8 +1492,10 @@ midori_view_construct_web_view (MidoriView* view)
view->web_view = webkit_web_view_new ();
if (g_object_class_find_property (G_OBJECT_GET_CLASS (view->web_view), "session"))
#if HAVE_LIBSOUP
g_object_set (view->web_view, "session",
katze_net_get_session (view->net), NULL);
#endif
web_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view->web_view));