summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-02-22 19:37:04 -0600
committerBe <be@mixxx.org>2021-02-22 19:37:04 -0600
commit99037f03654fda4f86c43e051b633c7923625d8b (patch)
treeb8c28977ed1750b67b02df3f68a41fa8a3eeab25 /src/control
parenta211e75dd63d61776065ca2297f3d5810f423701 (diff)
ControlDoublePrivate: fix overzealous debug assertion
fixes https://bugs.launchpad.net/mixxx/+bug/1912549
Diffstat (limited to 'src/control')
-rw-r--r--src/control/control.cpp5
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;