mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Look in the UsesPatchNameList for the name rather than
its parent. git-svn-id: svn://localhost/ardour2/branches/3.0@12551 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b07a93ee0f
commit
d2f61e0f4c
1 changed files with 2 additions and 2 deletions
|
|
@ -236,7 +236,7 @@ PatchBank::set_state (const XMLTree& tree, const XMLNode& node)
|
|||
} else {
|
||||
XMLNode* use_patch_name_list = node.child ("UsesPatchNameList");
|
||||
if (use_patch_name_list) {
|
||||
_patch_list_name = node.property ("Name")->value();
|
||||
_patch_list_name = use_patch_name_list->property ("Name")->value();
|
||||
} else {
|
||||
error << "Patch without patch name list - patchfile will be ignored" << endmsg;
|
||||
return -1;
|
||||
|
|
@ -475,7 +475,7 @@ MIDINameDocument::MIDINameDocument (const string& filename)
|
|||
if (!_document.read (filename)) {
|
||||
throw failed_constructor ();
|
||||
}
|
||||
|
||||
|
||||
set_state (_document, *_document.root());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue