From: Christian Dywan Date: Sat, 14 Feb 2009 01:32:01 +0000 (+0100) Subject: Don't set the session unless we actually have libSoup X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5000a48e038be8b9a4c50415ae1d7c85847ddd6;p=midori Don't set the session unless we actually have libSoup --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 6d16148a..57cd01b4 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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));