diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-08 12:59:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-08 12:59:22 +0000 |
commit | 11190e19e27538fb9354812bb5584f699d657c55 (patch) | |
tree | 58c6abf2e1683e5d3fb4485a7f0ab1d071d167a3 /gtk2_ardour | |
parent | 5284a1efca7e4b1e95247015ccad557b2d0aaadc (diff) |
fixup path mishandling from OSX commit
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2838 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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)) { |