diff options
author | Be <be@mixxx.org> | 2021-02-22 19:37:04 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2021-02-22 19:37:04 -0600 |
commit | 99037f03654fda4f86c43e051b633c7923625d8b (patch) | |
tree | b8c28977ed1750b67b02df3f68a41fa8a3eeab25 | |
parent | a211e75dd63d61776065ca2297f3d5810f423701 (diff) |
ControlDoublePrivate: fix overzealous debug assertion
fixes https://bugs.launchpad.net/mixxx/+bug/1912549
-rw-r--r-- | src/control/control.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/control.cpp b/src/control/control.cpp index 22a79b6dce..cad558239f 100644 --- a/src/control/control.cpp +++ b/src/control/control.cpp @@ -102,7 +102,10 @@ QSharedPointer<ControlDoublePrivate> ControlDoublePrivate::getControl( bool bTrack, bool bPersist, double defaultValue) { - VERIFY_OR_DEBUG_ASSERT(key.isValid()) { + if (!key.isValid()) { + if (!flags.testFlag(ControlFlag::AllowInvalidKey)) { + DEBUG_ASSERT(key.isValid()); + } qWarning() << "ControlDoublePrivate::getControl returning nullptr" << "for invalid ConfigKey" << key; return nullptr; |