13
0

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
This commit is contained in:
Tim Mayberry 2007-09-05 02:18:49 +00:00
parent 4997dec414
commit 5a4412d091

View File

@ -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];