diff options
author | John Stebbins <[email protected]> | 2016-03-12 09:59:14 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-12 09:59:14 -0700 |
commit | 079f2cd0381900e268201b74042300dff1e6bc81 (patch) | |
tree | 85c6ece4e766e0dcb26a5e2733790664da699e0d | |
parent | 2331974d4f6679b0f197981f8f71911cb8f560a0 (diff) |
LinGui: fix "Cancel" of subtitle changes
Cancel did not revert the changes that were made.
-rw-r--r-- | gtk/src/subtitlehandler.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index 99a285c0a..52d6517c6 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -1098,7 +1098,8 @@ subtitle_add_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) if (response != GTK_RESPONSE_OK) { ghb_clear_subtitle_selection(ud->builder); - ghb_dict_set(ud->settings, "Subtitle", backup); + ghb_dict_set(ghb_get_job_settings(ud->settings), + "Subtitle", backup); subtitle_refresh_list_ui(ud); } else @@ -1151,7 +1152,8 @@ subtitle_add_fas_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) if (response != GTK_RESPONSE_OK) { ghb_clear_subtitle_selection(ud->builder); - ghb_dict_set(ud->settings, "Subtitle", backup); + ghb_dict_set(ghb_get_job_settings(ud->settings), + "Subtitle", backup); subtitle_refresh_list_ui(ud); } else @@ -1532,7 +1534,8 @@ subtitle_edit_clicked_cb(GtkWidget *widget, gchar *path, signal_user_data_t *ud) gtk_widget_hide(dialog); if (response != GTK_RESPONSE_OK) { - ghb_dict_set(ud->settings, "Subtitle", backup); + ghb_dict_set(ghb_get_job_settings(ud->settings), + "Subtitle", backup); subsettings = subtitle_get_selected_settings(ud, NULL); if (subsettings != NULL) { |