From 62040281f4b9c793855db517675ff5ccdeda6995 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 24 Feb 2014 22:16:30 +0000 Subject: LinGui: fix crash if all titles are too short git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6080 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gtk/src') 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) { -- cgit v1.2.3