]> spindle.queued.net Git - midori/commitdiff
Don't set the session unless we actually have libSoup
authorChristian Dywan <christian@twotoasts.de>
Sat, 14 Feb 2009 01:32:01 +0000 (02:32 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 14 Feb 2009 01:32:01 +0000 (02:32 +0100)
midori/midori-view.c

index 6d16148ac3cc7fd48428bd2d6a164ea459f776dc..57cd01b4933fd9de2dd1d6288bc179a84ee93a54 100644 (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));