diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-10 17:39:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-10 17:39:32 +0200 |
commit | 306f234a5b115b3a4bbc40509dab6a7d910958d5 (patch) | |
tree | eb105afc7dc5ef0e87aeb095112dad1a4fb6a89f /gtk2_ardour/session_dialog.cc | |
parent | f970022838285507eb792a171e6c0827c126a656 (diff) |
session->path() returns a dir (not the session file)
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r-- | gtk2_ardour/session_dialog.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index e6e0e87a75..e65ef5a552 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -477,8 +477,6 @@ SessionDialog::setup_new_session_page () } else if (ARDOUR_UI::instance()->session_loaded) { // point the new session file chooser at the parent directory of the current session string session_parent_dir = Glib::path_get_dirname(ARDOUR_UI::instance()->the_session()->path()); - string::size_type last_dir_sep = session_parent_dir.rfind(G_DIR_SEPARATOR); - session_parent_dir = session_parent_dir.substr(0, last_dir_sep); new_folder_chooser.set_current_folder (session_parent_dir); string default_session_folder = poor_mans_glob (Config->get_default_session_parent_dir()); |