Fix to avoid null setting for language vconf
authorSunyeop Hwang <sunyeop.hwang@samsung.com>
Fri, 11 Jan 2013 08:41:03 +0000 (17:41 +0900)
committerSunyeop Hwang <sunyeop.hwang@samsung.com>
Fri, 11 Jan 2013 08:41:03 +0000 (17:41 +0900)
Change-Id: Ifeb7b43a22c18fa0b44a08174b8117dc0d86754b

setting-phone/src/setting-phone-language-region.c

index b238719..fe2478e 100755 (executable)
@@ -228,7 +228,9 @@ void setting_phone_lang_change_lang_value(int ichk)
        //if (ichk > 0) {
                // CHECK 'AUTO' HERE
        ret = setting_set_int_slp_key(INT_SLP_SETTING_LANG, ichk, &err);
-       ret = vconf_set_str(VCONFKEY_LANGSET, locale);
+
+       if (ichk > 0)
+               ret = vconf_set_str(VCONFKEY_LANGSET, locale);
 }
 
 static void setting_phone_lang_item_Gendial_mouse_up_cb(void *data,