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:
parent
9ac7361b69
commit
23949886e6
@ -389,8 +389,6 @@ NewSessionDialog::NewSessionDialog()
|
|||||||
m_open_filechooser->set_title(_("select session file"));
|
m_open_filechooser->set_title(_("select session file"));
|
||||||
|
|
||||||
Gtk::FileFilter* template_filter = manage (new (Gtk::FileFilter));
|
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"));
|
template_filter->add_pattern(X_("*.template"));
|
||||||
m_template->set_filter (*template_filter);
|
m_template->set_filter (*template_filter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user