Ref T565, check for audio context

This commit is contained in:
Klaus Basan
2019-03-13 17:27:52 +01:00
committed by Mat Sutcliffe
parent 244c7e638a
commit d8d4fdf766

View File

@@ -490,7 +490,7 @@ void SwiftGuiStd::displayLog()
void SwiftGuiStd::onPttChanged(bool enabled)
{
if (!enabled) { return; }
if (!sGui) { return; }
if (!sGui || !sGui->getIContextAudio()) { return; }
sGui->getIContextAudio()->playNotification(CNotificationSounds::PTTClick, true);
}