From 71ba91cfd43bda2464fb7a534aad953feedf6ebf Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sun, 30 Aug 2020 18:22:21 +0200 Subject: control: Add ControlFlag value to disable DEBUG_ASSERTs on invalid input --- src/control/control.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/control') diff --git a/src/control/control.h b/src/control/control.h index fb7c5abfc3..da89fafb06 100644 --- a/src/control/control.h +++ b/src/control/control.h @@ -23,6 +23,7 @@ enum class ControlFlag { NoAssertIfMissing = 1 << 1, /// Don't log a warning when trying to access a non-existing CO. NoWarnIfMissing = (1 << 2) | NoAssertIfMissing, + AllowMissingOrInvalid = AllowInvalidKey | NoAssertIfMissing, }; Q_DECLARE_FLAGS(ControlFlags, ControlFlag) -- cgit v1.2.3