From e33b29d672a2bcad9fad4b797ba53dff1587c911 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 21 Sep 2013 13:22:06 -0400 Subject: make sure the template selector has an item visible if there are any --- gtk2_ardour/startup.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/startup.cc') diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index ed6d3b020e..5d9e174249 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -730,6 +730,11 @@ ArdourStartup::populate_session_templates () row[session_template_columns.name] = (*x).name; row[session_template_columns.path] = (*x).path; } + + if (!templates.empty()) { + /* select first row */ + template_chooser.set_active (0); + } } void -- cgit v1.2.3