]> spindle.queued.net Git - midori/commitdiff
Unconditionally propagae modified user-agent property value
authorChristian Dywan <christian@twotoasts.de>
Mon, 1 Feb 2010 22:42:35 +0000 (23:42 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 1 Feb 2010 22:55:51 +0000 (23:55 +0100)
midori/midori-websettings.c

index c53802e67b19b5ec5cf34a165738023c71df5a02..0a75752060691c3dd199434e5ce52dbe2925e10c 100644 (file)
@@ -1518,12 +1518,11 @@ midori_web_settings_set_property (GObject*      object,
         break;
     case PROP_USER_AGENT:
         if (web_settings->identify_as == MIDORI_IDENT_CUSTOM)
-        {
             katze_assign (web_settings->ident_string, g_value_dup_string (value));
-            #if WEBKIT_CHECK_VERSION (1, 1, 11)
-            g_object_set (web_settings, "WebKitWebSettings::user-agent", web_settings->ident_string, NULL);
-            #endif
-        }
+        #if WEBKIT_CHECK_VERSION (1, 1, 11)
+        g_object_set (web_settings, "WebKitWebSettings::user-agent",
+                                    web_settings->ident_string, NULL);
+        #endif
         break;
     case PROP_PREFERRED_LANGUAGES:
         katze_assign (web_settings->http_accept_language, g_value_dup_string (value));