summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-02-23 02:33:12 -0600
committerBe <be@mixxx.org>2021-02-23 02:33:12 -0600
commit11345c0092a09cb1ef1e24a59570c1b62cff7d78 (patch)
treee46ebc59cda7189424bbbee1cffbca3b6780b46d /src/control
parent99037f03654fda4f86c43e051b633c7923625d8b (diff)
ControlDoublePrivate: clarify debug assertion
Diffstat (limited to 'src/control')
-rw-r--r--src/control/control.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/control/control.cpp b/src/control/control.cpp
index cad558239f..640bcaaa79 100644
--- a/src/control/control.cpp
+++ b/src/control/control.cpp
@@ -103,11 +103,9 @@ QSharedPointer<ControlDoublePrivate> ControlDoublePrivate::getControl(
bool bPersist,
double defaultValue) {
if (!key.isValid()) {
- if (!flags.testFlag(ControlFlag::AllowInvalidKey)) {
- DEBUG_ASSERT(key.isValid());
- }
qWarning() << "ControlDoublePrivate::getControl returning nullptr"
<< "for invalid ConfigKey" << key;
+ DEBUG_ASSERT(flags.testFlag(ControlFlag::AllowInvalidKey));
return nullptr;
}