13
0

always use plugin's ::midnam_model() method to provide the name of a custom, plugin provided MIDNAM document

This commit is contained in:
Paul Davis 2020-02-06 14:40:18 -07:00
parent 39e0c0a084
commit d4dd756bf6

View File

@ -1106,10 +1106,7 @@ LV2Plugin::read_midnam () {
}
char* midnam = _midname_interface->midnam ((void*)_impl->instance->lv2_handle);
if (midnam) {
std::stringstream ss;
ss << (void*)this;
ss << unique_id();
rv = MIDI::Name::MidiPatchManager::instance().update_custom_midnam (ss.str(), midnam);
rv = MIDI::Name::MidiPatchManager::instance().update_custom_midnam (midnam_model(), midnam);
}
#ifndef NDEBUG
if (rv) {