summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 08c273251..81522d5ad 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -3008,14 +3008,17 @@ ghb_backend_events(signal_user_data_t *ud)
label = GTK_LABEL(GHB_WIDGET (ud->builder, "volume_label"));
+ ghb_clear_scan_state(GHB_STATE_SCANDONE);
// Are there really any titles.
if (title == NULL)
{
gtk_label_set_text(label, _("No Title Found"));
+ ghb_ui_update(ud, "title", ghb_int64_value(-1));
+ }
+ else
+ {
+ ghb_ui_update(ud, "title", ghb_int64_value(title->index));
}
- ghb_clear_scan_state(GHB_STATE_SCANDONE);
-
- ghb_ui_update(ud, "title", ghb_int64_value(title->index));
if (ghb_queue_edit_settings != NULL)
{