View Issue Details

IDProjectCategoryView StatusLast Update
0001853ardourbugspublic2008-11-21 00:04
Reporterjdavisp3 Assigned Totimbyr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0 
Summary0001853: selecting existing session to open does not always work
DescriptionIf you select an existing session by typing in the fullpath
rather than mousing, ardour looks for it in the wrong directory.
This is similar to bug 1852 and has a similar fix. A patch is
attached, relative to the 1852 patch.
TagsNo tags attached.

Activities

2007-09-03 18:42

 

ardour2.patch (626 bytes)   
--- /tmp/new_session_dialog.cc	2007-09-03 10:44:43.000000000 -0700
+++ gtk2_ardour/new_session_dialog.cc	2007-09-03 11:35:24.000000000 -0700
@@ -468,7 +468,8 @@
 		return Glib::filename_from_utf8(m_folder->get_filename());
 	} 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];
ardour2.patch (626 bytes)   

timbyr

2007-09-05 02:20

developer   ~0004334

Patch committed to trunk as r2419

jdavisp3

2007-09-13 15:32

reporter   ~0004363

The change to the trunk isn't quite right. I'll add a patch.

2007-09-13 15:32

 

ardour-2.0.patch (938 bytes)   
Index: gtk2_ardour/new_session_dialog.cc
===================================================================
--- gtk2_ardour/new_session_dialog.cc	(revision 2464)
+++ gtk2_ardour/new_session_dialog.cc	(working copy)
@@ -506,12 +506,12 @@
 std::string
 NewSessionDialog::session_folder() const
 {
-        if (m_notebook->get_current_page() == 0) {
-	        return Glib::filename_from_utf8(m_folder->get_filename());
+	if (m_notebook->get_current_page() == 0) {
+		return Glib::filename_from_utf8(m_folder->get_filename());
 	} else {
-	       
 		if (m_treeview->get_selection()->count_selected_rows() == 0) {
-		        return Glib::filename_from_utf8(m_open_filechooser->get_filename());
+			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];
ardour-2.0.patch (938 bytes)   

jdavisp3

2007-09-13 15:33

reporter   ~0004364

Err, I meant the change to 2.0-ongoing, not the trunk.

timbyr

2007-09-19 01:51

developer   ~0004379

I believe you reopened the wrong bug. As I understand it two basically identical bug reports were created, one for the 2.0-ongoing branch(1852) and one for the trunk branch(1853).

Anyway, this issue should now be fixed in both branches.

Issue History

Date Modified Username Field Change
2007-09-03 18:42 jdavisp3 New Issue
2007-09-03 18:42 jdavisp3 File Added: ardour2.patch
2007-09-05 02:14 timbyr Status new => assigned
2007-09-05 02:14 timbyr Assigned To => timbyr
2007-09-05 02:20 timbyr Status assigned => resolved
2007-09-05 02:20 timbyr Resolution open => fixed
2007-09-05 02:20 timbyr Note Added: 0004334
2007-09-13 15:32 jdavisp3 Status resolved => feedback
2007-09-13 15:32 jdavisp3 Resolution fixed => reopened
2007-09-13 15:32 jdavisp3 Note Added: 0004363
2007-09-13 15:32 jdavisp3 File Added: ardour-2.0.patch
2007-09-13 15:33 jdavisp3 Note Added: 0004364
2007-09-19 01:51 timbyr Status feedback => resolved
2007-09-19 01:51 timbyr Resolution reopened => fixed
2007-09-19 01:51 timbyr Note Added: 0004379
2008-11-21 00:04 seablade Status resolved => closed