OSDN Git Service

LinGui: fix problem with preset import translation when they the standard
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 1 Nov 2008 22:38:37 +0000 (22:38 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 1 Nov 2008 22:38:37 +0000 (22:38 +0000)
presets are loaded for the first time

git-svn-id: svn://localhost/HandBrake/trunk@1893 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/presets.c

index 0e40e6d..4a06c1c 100644 (file)
@@ -2392,18 +2392,21 @@ ghb_presets_load()
        if (presetsPlist == NULL)
        {
                presetsPlist = ghb_value_dup(ghb_resource_get("standard-presets"));
+               import_xlat_presets(presetsPlist);
                store_presets();
        }
        else if (G_VALUE_TYPE(presetsPlist) == ghb_dict_get_type())
        { // Presets is older dictionary format. Convert to array
                ghb_value_free(presetsPlist);
                presetsPlist = ghb_value_dup(ghb_resource_get("standard-presets"));
+               import_xlat_presets(presetsPlist);
                store_presets();
        }
        else if (check_old_presets())
        {
                ghb_value_free(presetsPlist);
                presetsPlist = ghb_value_dup(ghb_resource_get("standard-presets"));
+               import_xlat_presets(presetsPlist);
                store_presets();
        }
        import_xlat_presets(presetsPlist);