mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 19:59:30 +01:00
Fully restore ARDOUR::SoloControl state
This is part of a fix for bug #7025 which means the id property of PBD::Controllable is restored and a new id is not generated at first save. This also fixes restoring bindings associated SoloControl instances, which is a bit surprising hasn't been noticed/reported.
This commit is contained in:
parent
b6c80153c3
commit
19831f068c
1 changed files with 5 additions and 1 deletions
|
|
@ -213,8 +213,12 @@ SoloControl::clear_all_solo_state ()
|
|||
}
|
||||
|
||||
int
|
||||
SoloControl::set_state (XMLNode const & node, int)
|
||||
SoloControl::set_state (XMLNode const & node, int version)
|
||||
{
|
||||
if (SlavableAutomationControl::set_state(node, version)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
XMLProperty const * prop;
|
||||
|
||||
if ((prop = node.property ("self-solo")) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue