From 96a7d55eb6c5d800af1f2a2c181f7724721f4e08 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 21 Nov 2009 23:52:50 +0000 Subject: LinGui: fix problem with loading preset that has deinterlace enabled setting a radio box to false doesn't automatically set it's counterpart to true. Must explicitly enable deinterlace when decomb is false git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2952 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/presets.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gtk/src/presets.c b/gtk/src/presets.c index fe6493dff..bac7bb895 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -906,6 +906,19 @@ preset_to_ui(signal_user_data_t *ud, GValue *dict) init_settings_from_dict(ud->settings, hidden, dict); init_ui_from_dict(ud, internal, dict); init_ui_from_dict(ud, hidden, dict); + + if (dict != NULL) + { + GValue *val; + gboolean dd; + + val = ghb_dict_lookup(dict, "PictureDecombDeinterlace"); + if (val != NULL) + { + dd = ghb_value_boolean(val); + ghb_ui_update(ud, "PictureDeinterlaceDecomb", ghb_boolean_value(!dd)); + } + } } void -- cgit v1.2.3