From 1399e176b597d2cf2f644c91594d2811b1197a3d Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 1 Nov 2008 22:38:37 +0000 Subject: LinGui: fix problem with preset import translation when they the standard 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk') diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 0e40e6dcc..4a06c1c84 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -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); -- cgit v1.2.3