From 9b578bfff23fccaa97b9d38d12e780a599f39982 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Fri, 1 Sep 2006 09:28:41 +0000 Subject: [PATCH] If you rename a session directory, it will no longer open from the recent sessions treeview, since child nodes are not created for sessions with only one snapshot. This change creates child nodes for all sessions, allowing you to rename a sessions directoy without breaking the recent sessions. git-svn-id: svn://localhost/ardour2/trunk@884 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/new_session_dialog.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc index 462fb57711..4a533137a6 100644 --- a/gtk2_ardour/new_session_dialog.cc +++ b/gtk2_ardour/new_session_dialog.cc @@ -657,8 +657,8 @@ NewSessionDialog::reset_template() void NewSessionDialog::reset_recent() { - /* Shamelessly ripped from ardour_ui.cc */ - std::vector *sessions; + /* Shamelessly ripped from ardour_ui.cc */ + std::vector *sessions; std::vector::iterator i; RecentSessionsSorter cmp; @@ -677,7 +677,7 @@ NewSessionDialog::reset_recent() for (i = sessions->begin(); i != sessions->end(); ++i) { - std::vector* states; + std::vector* states; std::vector item; std::string fullpath = *(*i); @@ -699,7 +699,7 @@ NewSessionDialog::reset_recent() row[recent_columns.visible_name] = Glib::path_get_basename (fullpath); row[recent_columns.fullpath] = fullpath; - if (states->size() > 1) { + if (states->size()) { /* add the children */