diff options
Diffstat (limited to 'gtk2_ardour/export_file_notebook.cc')
-rw-r--r-- | gtk2_ardour/export_file_notebook.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/export_file_notebook.cc b/gtk2_ardour/export_file_notebook.cc index 959bc42a2f..c9cd747d75 100644 --- a/gtk2_ardour/export_file_notebook.cc +++ b/gtk2_ardour/export_file_notebook.cc @@ -273,8 +273,13 @@ void ExportFileNotebook::FilePage::update_example_filename() { if (profile_manager) { - std::string example = profile_manager->get_sample_filename_for_format ( - filename_state->filename, format_state->format); + + std::string example; + if (format_state->format) { + example = profile_manager->get_sample_filename_for_format ( + filename_state->filename, format_state->format); + } + if (example != "") { sys::path path(example); filename_selector.set_example_filename(path.leaf()); |