summaryrefslogtreecommitdiff
path: root/gtk2_ardour/startup.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-27 02:01:40 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-27 02:01:40 +0000
commit2b28b268c06ac79fe27c2ac2b5895a0bc129f624 (patch)
tree83a084fd71f453d766a23a2ea257dcb57ee4f67a /gtk2_ardour/startup.cc
parent04cc804414b88b72c1c9b3f50806295a0e1dc006 (diff)
Remove existing widgets when setting up the existing session page. Fixes #3421.
git-svn-id: svn://localhost/ardour2/branches/3.0@7698 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r--gtk2_ardour/startup.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc
index f8e871f70b..913b800b15 100644
--- a/gtk2_ardour/startup.cc
+++ b/gtk2_ardour/startup.cc
@@ -906,6 +906,10 @@ ArdourStartup::setup_existing_session_page ()
return;
}
+ if (!session_hbox.get_children().empty()) {
+ session_hbox.remove (**session_hbox.get_children().begin());
+ }
+
recent_session_display.set_model (recent_session_model);
recent_session_display.append_column (_("Recent Sessions"), recent_session_columns.visible_name);
recent_session_display.set_headers_visible (false);