diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-02-08 20:01:42 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-02-08 20:01:42 +0100 |
commit | 8bbaab334c5116be4c180c3eac93c4acc844f4bd (patch) | |
tree | ddb2796f0cfe574bec2132e98eff675d2ccccb59 /api/logic/settings | |
parent | 155de307bc6ef1a42226831550680110e00dc8c3 (diff) | |
download | MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.gz MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.lz MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.xz MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.zip |
NOISSUE set line limit and overflow behaviour even for hidden console
Diffstat (limited to 'api/logic/settings')
-rw-r--r-- | api/logic/settings/PassthroughSetting.cpp | 5 |
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(); } |