From 5a4836ad013955d934a12cb52098cc599a3aa9af Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 30 Nov 2005 23:00:01 +0000 Subject: [PATCH] fix to allow new session to work. git-svn-id: svn://localhost/trunk/ardour2@156 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 490fe7b056..bcaf4d0cc6 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2647,6 +2647,13 @@ ARDOUR_UI::new_session (bool startup, std::string predetermined_path) std::string session_name = m_new_session_dialog->session_name(); std::string session_path = m_new_session_dialog->session_folder(); + + /* + XXX This is needed because session constructor wants a + non-existant path. hopefully this will be fixed at some point. + */ + session_path = Glib::build_filename(session_path, session_name); + std::string template_name = m_new_session_dialog->session_template_name(); if (m_new_session_dialog->use_session_template()) {