summaryrefslogtreecommitdiffstats
path: root/api/logic/settings
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/settings')
-rw-r--r--api/logic/settings/PassthroughSetting.cpp5
1 files changed, 4 insertions, 1 deletions
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<Setting> 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();
}