Allow successive changes from the Gui to set tags.
authorBen Loftis <ben@harrisonconsoles.com>
Fri, 2 Mar 2018 21:57:58 +0000 (15:57 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Fri, 2 Mar 2018 21:57:58 +0000 (15:57 -0600)
libs/ardour/plugin_manager.cc

index e506d5db0b01c313fc28ad99ddc9c65b7fe0b785..1703265f349a1d6a98c02724cb70f365d60b18d3 100644 (file)
@@ -1613,7 +1613,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);
        }