[AFV] Fixed context unittest that was broken by audio context changes

This commit is contained in:
Mat Sutcliffe
2019-10-06 16:40:04 +01:00
parent b90855d393
commit ec0a20b1d1
3 changed files with 6 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ namespace BlackCore
{
// workaround if a binding is taking place in an empty context
if (!sApp || sApp->isShuttingDown()) { return; }
if (sApp->getApplicationInfo().isUnitTest()) { return; }
const QString a = CActionBind::registerAction(action, icon);
Q_ASSERT_X(sApp && sApp->getInputManager(), Q_FUNC_INFO, "Missing input manager");