From 8bbaab334c5116be4c180c3eac93c4acc844f4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 8 Feb 2017 20:01:42 +0100 Subject: NOISSUE set line limit and overflow behaviour even for hidden console --- api/logic/settings/PassthroughSetting.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/logic/settings/PassthroughSetting.cpp') diff --git a/api/logic/settings/PassthroughSetting.cpp b/api/logic/settings/PassthroughSetting.cpp index 3839361c..2a407260 100644 --- a/api/logic/settings/PassthroughSetting.cpp +++ b/api/logic/settings/PassthroughSetting.cpp @@ -19,13 +19,16 @@ PassthroughSetting::PassthroughSetting(std::shared_ptr other, std::shar : Setting(other->configKeys(), QVariant()) { Q_ASSERT(other); - Q_ASSERT(gate); m_other = other; m_gate = gate; } bool PassthroughSetting::isOverriding() const { + if(!m_gate) + { + return false; + } return m_gate->get().toBool(); } -- cgit v1.2.3