diff options
author | John Stebbins <[email protected]> | 2018-01-14 13:10:02 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-01-14 13:11:02 -0700 |
commit | 8a35d8bea6652fabc808e72fa468161b8e1ff074 (patch) | |
tree | f3416bf0fef18cf4d477dc7cf771af27f1002c4e | |
parent | 61dd23ba07f06ed2c2f8f06ce753ab40fc5e33cb (diff) |
LinGui: fix "official" preset reload
The preset type was overwritten with custom type causing a failure to
look up the preset when reloading.
-rw-r--r-- | gtk/src/presets.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |