diff options
author | jstebbins <[email protected]> | 2014-02-24 22:16:30 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-24 22:16:30 +0000 |
commit | 62040281f4b9c793855db517675ff5ccdeda6995 (patch) | |
tree | 0a210bee64bef2c8ea6d770664afd4b301925c45 /gtk/src | |
parent | 888fa38b6f36f092afe189624604b1b347195cee (diff) |
LinGui: fix crash if all titles are too short
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6080 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 9 |
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) { |