Commit 629ca760 authored by John Stebbins's avatar John Stebbins

LinGui: Fix null subtitle name

Fixes https://github.com/HandBrake/HandBrake/issues/2244
parent ba6c7ff5
......@@ -779,7 +779,10 @@ subtitle_update_setting(GhbValue *val, const char *name, signal_user_data_t *ud)
subsettings = subtitle_get_selected_settings(ud, NULL);
if (subsettings != NULL)
{
ghb_dict_set(subsettings, name, val);
if (val != NULL)
ghb_dict_set(subsettings, name, val);
else
ghb_dict_remove(subsettings, name);
subtitle_list_refresh_selected(ud, subsettings);
ghb_update_summary_info(ud);
ghb_live_reset(ud);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment