blob: 2f361fc443b8fc17a99cb0b55c48645f4f120666 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- embed/ephy-embed-prefs.c.orig 2010-02-20 04:42:51.000000000 -0500
+++ embed/ephy-embed-prefs.c 2010-05-08 20:03:20.000000000 -0400
@@ -322,8 +322,10 @@ webkit_pref_callback_accept_languages (G
langs_str = g_strjoinv (", ", langs);
/* Update Soup session */
- session = webkit_get_default_session ();
- g_object_set (G_OBJECT (session), webkit_pref, langs_str, NULL);
+ if (strlen (langs_str) > 0) {
+ session = webkit_get_default_session ();
+ g_object_set (G_OBJECT (session), webkit_pref, langs_str, NULL);
+ }
g_strfreev (langs);
g_free (langs_str);
|