13
0

fix incorrect accumulation of export video options each time the dialog is used

This commit is contained in:
Paul Davis 2018-11-29 17:36:19 -05:00
parent f443626daa
commit 7801888810

View File

@ -154,7 +154,6 @@ ExportVideoDialog::ExportVideoDialog ()
path_hbox->pack_start (*l, false, false, 2);
vbox->pack_start (*path_hbox, false, false, 2);
insnd_combo.append_text (string_compose (_("from session start marker to session end marker"), PROGRAM_NAME));
outfn_path_entry.set_width_chars(38);
l = manage (new Label (_("<b>Settings:</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
@ -335,6 +334,11 @@ ExportVideoDialog::apply_state (TimeSelection &tme, bool range)
// TODO remember setting for export-range.. somehow, (let explicit range override)
sampleoffset_t av_offset = ARDOUR_UI::instance()->video_timeline->get_offset();
insnd_combo.remove_all ();
insnd_combo.append_text (_("from session start marker to session end marker"));
if (av_offset < 0 ) {
insnd_combo.append_text (_("from 00:00:00:00 to the video end"));
} else {