From: John Stebbins Date: Sun, 14 Jan 2018 20:10:02 +0000 (-0700) Subject: LinGui: fix "official" preset reload X-Git-Tag: 1.1.0~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a35d8bea6652fabc808e72fa468161b8e1ff074;p=handbrake LinGui: fix "official" preset reload The preset type was overwritten with custom type causing a failure to look up the preset when reloading. --- diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 06a29dd05..feceb3e54 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -1637,7 +1637,6 @@ ghb_settings_to_preset(GhbValue *settings) ghb_dict_remove(preset, "title"); ghb_dict_set_bool(preset, "Default", 0); - ghb_dict_set_int(preset, "Type", HB_PRESET_TYPE_CUSTOM); if (!ghb_dict_get_bool(preset, "PictureWidthEnable")) { ghb_dict_remove(preset, "PictureWidth"); @@ -1874,6 +1873,7 @@ settings_save(signal_user_data_t *ud, const char * category, } new_preset = ghb_settings_to_preset(ud->settings); + ghb_dict_set_int(new_preset, "Type", HB_PRESET_TYPE_CUSTOM); ghb_dict_set_string(new_preset, "PresetName", name); ghb_dict_set_string(new_preset, "PresetDescription", desc);