From 52f45952cfe56d21c4aa0bc40b87ae8458aacc20 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 12 Jun 2009 23:17:34 +0200 Subject: [PATCH] Enforce generated ident string if Custom was not chosen This solves the ident string not being updated when Midori is upgraded and running with existing configuration files. --- midori/midori-websettings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index a739c74a..d16e5562 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -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); -- 2.39.5