make NSD open correctly if open clicked from audio setup page

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2315 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-08-16 14:54:06 +00:00
parent 43a43437bc
commit eb8fa64dff
2 changed files with 4 additions and 4 deletions

View file

@ -491,7 +491,10 @@ NewSessionDialog::session_name() const
}
*/
if (m_notebook->get_current_page() == 0) {
int page = m_notebook->get_current_page();
if (page == 0 || page == 2) {
/* new or audio setup pages */
return Glib::filename_from_utf8(m_name->get_text());
} else {
if (m_treeview->get_selection()->count_selected_rows() == 0) {