]> spindle.queued.net Git - midori/commitdiff
Enforce generated ident string if Custom was not chosen
authorChristian Dywan <christian@twotoasts.de>
Fri, 12 Jun 2009 21:17:34 +0000 (23:17 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 12 Jun 2009 21:17:34 +0000 (23:17 +0200)
This solves the ident string not being updated when Midori is
upgraded and running with existing configuration files.

midori/midori-websettings.c

index a739c74a1c4150dfea7cad1566aea24059ba838b..d16e5562e72c313e18aa2265a79bb459b6fb67a5 100644 (file)
@@ -1292,7 +1292,8 @@ midori_web_settings_set_property (GObject*      object,
         }
         break;
     case PROP_IDENT_STRING:
-        katze_assign (web_settings->ident_string, g_value_dup_string (value));
+        if (web_settings->identify_as == MIDORI_IDENT_CUSTOM)
+            katze_assign (web_settings->ident_string, g_value_dup_string (value));
         break;
     case PROP_CACHE_SIZE:
         web_settings->cache_size = g_value_get_int (value);