13
0

Restrict template filechooser to displaying only template files. Fixes bug 1823.

It previously allowed ardour session files and session backup files to be
selected as templates, this was causing strange behaviour or segmentation
faults. see bug report for more details.


git-svn-id: svn://localhost/ardour2/trunk@2348 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-08-27 11:21:55 +00:00
parent 9ac7361b69
commit 23949886e6

View File

@ -389,8 +389,6 @@ NewSessionDialog::NewSessionDialog()
m_open_filechooser->set_title(_("select session file"));
Gtk::FileFilter* template_filter = manage (new (Gtk::FileFilter));
template_filter->add_pattern(X_("*.ardour"));
template_filter->add_pattern(X_("*.ardour.bak"));
template_filter->add_pattern(X_("*.template"));
m_template->set_filter (*template_filter);