summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-05-18 07:39:05 -0700
committerJohn Stebbins <[email protected]>2018-05-18 07:39:05 -0700
commitad88c56567ea543de294f25fa59b504ddb3013a2 (patch)
treed7b23463592bae26f67fd31e7472adbb9be4b548 /gtk/src
parent32dbcb16134644e8c1e15839f8f0fa67d2657cb6 (diff)
LinGui: fix behaviour of queue add multiple
It was adding titles that were not selected. Fixes https://github.com/HandBrake/HandBrake/issues/1347
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/queuehandler.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index df9816502..63598f9ca 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -1725,9 +1725,13 @@ title_dest_file_cb(GtkWidget *widget, signal_user_data_t *ud)
// Check if changing the destination file name resolves
// a file name conflict. Enable selection if so.
// Disable selection if it creates a conflict!!!
- gboolean can_select;
+ gboolean selected, can_select;
+
+ widget = find_widget(GTK_WIDGET(row), "title_selected");
+ selected = ghb_widget_boolean(widget);
can_select = title_multiple_can_select(ud->settings_array, index);
- ghb_dict_set_bool(settings, "title_selected", can_select);
+
+ ghb_dict_set_bool(settings, "title_selected", selected && can_select);
title_add_multiple_set_sensitive(GTK_WIDGET(row), can_select);
g_free(dest_file);
@@ -1761,9 +1765,13 @@ title_dest_dir_cb(GtkWidget *widget, signal_user_data_t *ud)
// Check if changing the destination file name resolves
// a file name conflict. Enable selection if so.
// Disable selection if it creates a conflict!!!
- gboolean can_select;
+ gboolean selected, can_select;
+
+ widget = find_widget(GTK_WIDGET(row), "title_selected");
+ selected = ghb_widget_boolean(widget);
can_select = title_multiple_can_select(ud->settings_array, index);
- ghb_dict_set_bool(settings, "title_selected", can_select);
+
+ ghb_dict_set_bool(settings, "title_selected", selected && can_select);
title_add_multiple_set_sensitive(GTK_WIDGET(row), can_select);
g_free(dest_dir);