summaryrefslogtreecommitdiff
path: root/gtk2_ardour/startup.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-21 13:22:06 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-21 13:22:06 -0400
commite33b29d672a2bcad9fad4b797ba53dff1587c911 (patch)
tree331ca57e05eeb45fa4bff6d28c3ea2b67878fb76 /gtk2_ardour/startup.cc
parent482a90cccfe458c354b39e60856909eb863010f2 (diff)
make sure the template selector has an item visible if there are any
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r--gtk2_ardour/startup.cc5
1 files changed, 5 insertions, 0 deletions
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