]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix problem with preset import translation when they the standard
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 1 Nov 2008 22:38:37 +0000 (22:38 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 1 Nov 2008 22:38:37 +0000 (22:38 +0000)
presets are loaded for the first time

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

gtk/src/presets.c

index 0e40e6dcc21fbee1884306a3beb16e2ef8153bd6..4a06c1c84b3296c1f5cc2f9988272d25217aa30b 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);