mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #355, fixed voice room override
* missing connection for url/checkbox 2 * missing updates when values were changed
This commit is contained in:
@@ -77,10 +77,10 @@ namespace BlackCore
|
||||
void CContextOwnAircraft::resolveVoiceRooms()
|
||||
{
|
||||
CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO;
|
||||
if (this->m_voiceRoom1UrlOverride.isEmpty() && this->m_voiceRoom2UrlOverride.isEmpty() && !this->m_automaticVoiceRoomResolution) return;
|
||||
if (!this->getIContextNetwork()) return; // no chance to resolve rooms
|
||||
if (!this->getIContextAudio()) return; // no place to set rooms
|
||||
if (!this->m_automaticVoiceRoomResolution) return; // not responsible
|
||||
if (this->m_voiceRoom1UrlOverride.isEmpty() && this->m_voiceRoom2UrlOverride.isEmpty() && !this->m_automaticVoiceRoomResolution) { return; }
|
||||
if (!this->getIContextNetwork()) { return; } // no chance to resolve rooms
|
||||
if (!this->getIContextAudio()) { return; } // no place to set rooms
|
||||
if (!this->m_automaticVoiceRoomResolution) { return; } // not responsible
|
||||
|
||||
// requires correct frequencies set
|
||||
// but local network uses exactly this object here, so if frequencies are set here,
|
||||
|
||||
Reference in New Issue
Block a user