13
0

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
This commit is contained in:
Doug McLain 2006-09-01 09:28:41 +00:00
parent c1e5842565
commit 9b578bfff2

View File

@ -657,8 +657,8 @@ NewSessionDialog::reset_template()
void
NewSessionDialog::reset_recent()
{
/* Shamelessly ripped from ardour_ui.cc */
std::vector<string *> *sessions;
/* Shamelessly ripped from ardour_ui.cc */
std::vector<string *> *sessions;
std::vector<string *>::iterator i;
RecentSessionsSorter cmp;
@ -677,7 +677,7 @@ NewSessionDialog::reset_recent()
for (i = sessions->begin(); i != sessions->end(); ++i) {
std::vector<std::string*>* states;
std::vector<std::string*>* states;
std::vector<const gchar*> 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 */