make sure the template selector has an item visible if there are any
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 21 Sep 2013 17:22:06 +0000 (13:22 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 21 Sep 2013 17:22:06 +0000 (13:22 -0400)
gtk2_ardour/startup.cc

index ed6d3b020efebbd414a6c6db2d8988b42f22f0a9..5d9e1742496e1d60177e1d898f0cd449282fdf00 100644 (file)
@@ -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