Optimize automation-event process splitting
[ardour.git] / libs / ardour / template_utils.cc
index ceeefb0e513ef8b39afde3d762686afab1f66630..4b8d5b2b7816b12f2e0f75ad11045ef1a9e3abc1 100644 (file)
@@ -110,14 +110,14 @@ find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
 
                        XMLNode* root = tree.root();
                        
-                       rti.created_with = _("(unknown)");
+                       rti.modified_with = _("(unknown)");
                        try {
                                XMLNode *pv = root->child("ProgramVersion");
-                               string created_with;
+                               string modified_with;
                                if (pv != 0) {
-                                       pv->get_property (X_("created-with"), created_with);
+                                       pv->get_property (X_("modified-with"), modified_with);
                                }
-                               rti.created_with = created_with;
+                               rti.modified_with = modified_with;
                        } catch (XMLException &e) {}
 
                        rti.description = _("No Description");
@@ -131,6 +131,7 @@ find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
 
                template_names.push_back (rti);
        }
+       std::sort(template_names.begin(), template_names.end());
 }
 
 void
@@ -158,14 +159,14 @@ find_route_templates (vector<TemplateInfo>& template_names)
 
                TemplateInfo rti;
 
-               rti.created_with = _("(unknown)");
+               rti.modified_with = _("(unknown)");
                try {
                        XMLNode *pv = root->child("ProgramVersion");
-                       string created_with;
+                       string modified_with;
                        if (pv != 0) {
-                               pv->get_property (X_("created-with"), created_with);
+                               pv->get_property (X_("modified-with"), modified_with);
                        }
-                       rti.created_with = created_with;
+                       rti.modified_with = modified_with;
                } catch (XMLException &e) {}
 
                rti.description = _("No Description");