summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_video_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-11-29 17:36:19 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2018-11-29 17:43:17 -0500
commit78018888105024712c3ad316738c5cca0a1022be (patch)
tree85adf7fd4f46d5d85a51c80c734726449f66ad66 /gtk2_ardour/export_video_dialog.cc
parentf443626daa8cc654ef5682e4c144394f49876e80 (diff)
fix incorrect accumulation of export video options each time the dialog is used
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r--gtk2_ardour/export_video_dialog.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc
index 8d607763c9..d5182bcc5f 100644
--- a/gtk2_ardour/export_video_dialog.cc
+++ b/gtk2_ardour/export_video_dialog.cc
@@ -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 {