fix crash during new session setup related to template choice

git-svn-id: svn://localhost/ardour2/branches/3.0@5019 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-04-30 18:17:02 +00:00
parent 2e7c10b6ef
commit 62fe887e24

View File

@ -142,7 +142,7 @@ bool
ArdourStartup::use_session_template ()
{
if (use_template_button.get_active()) {
return template_chooser.get_active_row_number() != 0;
return template_chooser.get_active_row_number() > 0;
} else {
return !session_template_chooser.get_filename().empty();
}