diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-11 20:53:32 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-11 20:58:05 +0100 |
commit | 8179efab256c75568aa77f3128b1311553575784 (patch) | |
tree | b10668a6e86118066b28e3d7066778597522e94f /gtk2_ardour/export_file_notebook.cc | |
parent | 2c2002ee9cae4fbfa1c72839cafc147506da5887 (diff) |
Allow removing the timespan name from the export-filename:
- if only one timespan is exported
and
- if at least one other name option is set.
Diffstat (limited to 'gtk2_ardour/export_file_notebook.cc')
-rw-r--r-- | gtk2_ardour/export_file_notebook.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/export_file_notebook.cc b/gtk2_ardour/export_file_notebook.cc index 2f74304ce2..0ebee83a68 100644 --- a/gtk2_ardour/export_file_notebook.cc +++ b/gtk2_ardour/export_file_notebook.cc @@ -308,6 +308,12 @@ void ExportFileNotebook::FilePage::update_example_filename() { if (profile_manager) { + if (profile_manager->get_timespans().size() > 1 + || profile_manager->get_timespans().front()->timespans->size() > 1) { + filename_selector.require_timespan (true); + } else { + filename_selector.require_timespan (false); + } std::string example; if (format_state->format) { |