From b3ad7da111d1a21f14de39d84be97104a9666017 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Jan 2014 13:12:18 +0300 Subject: add mods tab in settings. --- src/gui/widgets/setupitem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/widgets/setupitem.cpp') diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 09717bc8b..2cf35c144 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -105,6 +105,9 @@ Configuration *SetupItem::getConfig() const void SetupItem::load() { + if (mKeyName.empty()) + return; + const Configuration *const cfg = getConfig(); if (mUseDefault) { @@ -135,6 +138,9 @@ void SetupItem::load() void SetupItem::save() const { + if (mKeyName.empty()) + return; + Configuration *const cfg = getConfig(); cfg->setValue(mKeyName, mValue); } -- cgit v1.2.3-70-g09d2