summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2006-09-01 09:28:41 +0000
committerDoug McLain <doug@nostar.net>2006-09-01 09:28:41 +0000
commit9b578bfff23fccaa97b9d38d12e780a599f39982 (patch)
tree5b1d8b57b2363da7b0dd5ef8676764afdfca3f00
parentc1e584256584a7e8b33512b41060258a795b0c0e (diff)
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
-rw-r--r--gtk2_ardour/new_session_dialog.cc8
1 files 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<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 */