add well known controls to list accessible via a MIDI binding map (or OSC?)
[ardour.git] / libs / ardour / plugin_manager.cc
index e506d5db0b01c313fc28ad99ddc9c65b7fe0b785..233f986a7bbc0fb79bdf6b17bda67aa4bbe1259a 100644 (file)
@@ -1553,7 +1553,9 @@ PluginManager::save_tags ()
                node->set_property (X_("id"), (*i).unique_id);
                node->set_property (X_("tags"), (*i).tags);
                node->set_property (X_("name"), (*i).name);
-               node->set_property (X_("user-set"), "1");
+               if ( (*i).tagtype >= FromUserFile ) {
+                       node->set_property (X_("user-set"), "1");
+               }
                root->add_child_nocopy (*node);
        }
 
@@ -1613,7 +1615,7 @@ PluginManager::set_tags (PluginType t, string id, string tag, std::string name,
        PluginTagList::const_iterator i = find (ptags.begin(), ptags.end(), ps);
        if (i == ptags.end()) {
                ptags.insert (ps);
-       } else if ( (uint32_t) ttype >  (uint32_t) (*i).tagtype ) {  // only overwrite if we are more important than the existing. Gui > UserFile > FactoryFile > Plugin
+       } else if ( (uint32_t) ttype >=  (uint32_t) (*i).tagtype ) {  // only overwrite if we are more important than the existing. Gui > UserFile > FactoryFile > Plugin
                ptags.erase (ps);
                ptags.insert (ps);
        }