diff options
author | Be <be@mixxx.org> | 2021-02-23 07:52:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 07:52:52 -0800 |
commit | adc17e434eaf66505418ec711214ded4bf61ddb0 (patch) | |
tree | b16a993fcb0de84c8657cf3c263d2c36a4877352 /src | |
parent | 757d575cf63fbf3502f16b6ad0819dfa77c8d747 (diff) | |
parent | 11345c0092a09cb1ef1e24a59570c1b62cff7d78 (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.cpp | 3 |
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; } |