From 11190e19e27538fb9354812bb5584f699d657c55 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Jan 2008 12:59:22 +0000 Subject: fixup path mishandling from OSX commit git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2838 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 77c70d0888..d25e65030e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2234,7 +2234,14 @@ ARDOUR_UI::get_session_parameters (Glib::ustring predetermined_path, bool have_e session_path = 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. + if (!predetermined_path.length()) { + session_path = Glib::build_filename (session_path, session_name); + } + if (!should_be_new) { if (load_session (session_path, session_name)) { -- cgit v1.2.3