Fix for bug - switch association fails (#5947)
* Fix for bug - switch association fails Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com> * Change message box button from 'Yes' to 'Ok' Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com> * Changed message box button from 'Yes' to 'Ok' Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com> Co-authored-by: Tobias Alexander Franke <tobias.alexander.franke@huawei.com> Co-authored-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
This commit is contained in:
@@ -808,6 +808,21 @@ namespace AudioControls
|
||||
{
|
||||
AZ::StringFunc::Path::StripExtension(sControlName);
|
||||
}
|
||||
else if (eControlType == eACET_SWITCH_STATE)
|
||||
{
|
||||
if (!pATLParent->SwitchStateConnectionCheck(pAudioSystemControl))
|
||||
{
|
||||
QMessageBox messageBox(this);
|
||||
messageBox.setStandardButtons(QMessageBox::Ok);
|
||||
messageBox.setDefaultButton(QMessageBox::Ok);
|
||||
messageBox.setWindowTitle("Audio Controls Editor");
|
||||
messageBox.setText("Not in the same switch group, connection failed.");
|
||||
if (messageBox.exec() == QMessageBox::Ok)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
CATLControl* pTargetControl2 = m_pTreeModel->CreateControl(eControlType, sControlName, pATLParent);
|
||||
if (pTargetControl2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user