From e5000a48e038be8b9a4c50415ae1d7c85847ddd6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 14 Feb 2009 02:32:01 +0100 Subject: [PATCH] Don't set the session unless we actually have libSoup --- midori/midori-view.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.39.5