X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fplugin_manager.cc;h=233f986a7bbc0fb79bdf6b17bda67aa4bbe1259a;hb=a5e8a69dec467cc7d938cc3d92acb218b04486a9;hp=e506d5db0b01c313fc28ad99ddc9c65b7fe0b785;hpb=6f11cd30bf6bc63788216f557938f96251c26e02;p=ardour.git diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index e506d5db0b..233f986a7b 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -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); }