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:
parent
4997dec414
commit
5a4412d091
@ -469,7 +469,8 @@ NewSessionDialog::session_folder() const
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (m_treeview->get_selection()->count_selected_rows() == 0) {
|
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();
|
Gtk::TreeModel::iterator i = m_treeview->get_selection()->get_selected();
|
||||||
return (*i)[recent_columns.fullpath];
|
return (*i)[recent_columns.fullpath];
|
||||||
|
Loading…
Reference in New Issue
Block a user