projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4997dec
)
Fix opening session when manually entering path in the file chooser. Fixes bug 1853.
author
Tim Mayberry
<mojofunk@gmail.com>
Wed, 5 Sep 2007 02:18:49 +0000
(
02:18
+0000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Wed, 5 Sep 2007 02:18:49 +0000
(
02:18
+0000)
git-svn-id: svn://localhost/ardour2/trunk@2419
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
gtk2_ardour/new_session_dialog.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/new_session_dialog.cc
b/gtk2_ardour/new_session_dialog.cc
index 3edf751613e464e0bb84dcb87eac90182dd35c7f..966b2e8977375d10f45f7b46ca9dd82c6acc7763 100644
(file)
--- 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];