diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-09-05 02:18:49 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-09-05 02:18:49 +0000 |
commit | 5a4412d0919d118a35524bf44ea1cd5a094324ed (patch) | |
tree | f0cba2df033450c332dab1cf54fb2d456d9dfddb | |
parent | 4997dec4143ef0242aa0e636505bec6bc3aaf7e2 (diff) |
Fix opening session when manually entering path in the file chooser. Fixes bug 1853.
git-svn-id: svn://localhost/ardour2/trunk@2419 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/new_session_dialog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc index 3edf751613..966b2e8977 100644 --- a/gtk2_ardour/new_session_dialog.cc +++ b/gtk2_ardour/new_session_dialog.cc @@ -469,7 +469,8 @@ NewSessionDialog::session_folder() const } else { if (m_treeview->get_selection()->count_selected_rows() == 0) { - return Glib::filename_from_utf8(m_open_filechooser->get_current_folder()); + std::string str = Glib::filename_from_utf8(m_open_filechooser->get_filename()); + return Glib::path_get_dirname(str); } Gtk::TreeModel::iterator i = m_treeview->get_selection()->get_selected(); return (*i)[recent_columns.fullpath]; |