summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-02-23 07:52:52 -0800
committerGitHub <noreply@github.com>2021-02-23 07:52:52 -0800
commitadc17e434eaf66505418ec711214ded4bf61ddb0 (patch)
treeb16a993fcb0de84c8657cf3c263d2c36a4877352 /src
parent757d575cf63fbf3502f16b6ad0819dfa77c8d747 (diff)
parent11345c0092a09cb1ef1e24a59570c1b62cff7d78 (diff)
Merge pull request #3649 from Be-ing/fix_getcontrol_debug_assert
ControlDoublePrivate: fix overzealous debug assertion
Diffstat (limited to 'src')
-rw-r--r--src/control/control.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/control.cpp b/src/control/control.cpp
index 22a79b6dce..640bcaaa79 100644
--- a/src/control/control.cpp
+++ b/src/control/control.cpp
@@ -102,9 +102,10 @@ QSharedPointer<ControlDoublePrivate> ControlDoublePrivate::getControl(
bool bTrack,
bool bPersist,
double defaultValue) {
- VERIFY_OR_DEBUG_ASSERT(key.isValid()) {
+ if (!key.isValid()) {
qWarning() << "ControlDoublePrivate::getControl returning nullptr"
<< "for invalid ConfigKey" << key;
+ DEBUG_ASSERT(flags.testFlag(ControlFlag::AllowInvalidKey));
return nullptr;
}