mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +02:00
Fix bug and crash in solo logic
This commit is contained in:
parent
65a83cb026
commit
8f763dfd50
2 changed files with 3 additions and 3 deletions
|
@ -311,8 +311,8 @@ void AudioMixerClientData::parseSoloRequest(QSharedPointer<ReceivedMessage> mess
|
||||||
if (addToSolo) {
|
if (addToSolo) {
|
||||||
_soloedNodes.push_back(soloedUUID);
|
_soloedNodes.push_back(soloedUUID);
|
||||||
} else {
|
} else {
|
||||||
auto it = std::find(std::begin(_soloedNodes), std::end(_soloedNodes), soloedUUID);
|
auto it = std::remove(std::begin(_soloedNodes), std::end(_soloedNodes), soloedUUID);
|
||||||
_soloedNodes.erase(it);
|
_soloedNodes.erase(it, std::end(_soloedNodes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -284,7 +284,7 @@ AudioClient::AudioClient() :
|
||||||
connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, [this] {
|
connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, [this] {
|
||||||
_solo.reset();
|
_solo.reset();
|
||||||
});
|
});
|
||||||
connect(nodeList.data(), &NodeList::nodeAdded, this, [this](SharedNodePointer node) {
|
connect(nodeList.data(), &NodeList::nodeActivated, this, [this](SharedNodePointer node) {
|
||||||
if (node->getType() == NodeType::AudioMixer) {
|
if (node->getType() == NodeType::AudioMixer) {
|
||||||
_solo.resend();
|
_solo.resend();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue