From: Paul Davis Date: Sat, 21 Sep 2013 17:22:06 +0000 (-0400) Subject: make sure the template selector has an item visible if there are any X-Git-Tag: 3.5~106 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=e33b29d672a2bcad9fad4b797ba53dff1587c911;p=ardour.git make sure the template selector has an item visible if there are any --- 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