summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
commitb3ad7da111d1a21f14de39d84be97104a9666017 (patch)
tree72338ee95de5337acc4e00c6ff6ab8b2fc458d37 /src/gui/widgets/setupitem.cpp
parent2e47d5e2897ffd8bcf85b499fe68a20f9f694ebb (diff)
downloadplus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.gz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.bz2
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.xz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.zip
add mods tab in settings.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r--src/gui/widgets/setupitem.cpp6
1 files changed, 6 insertions, 0 deletions
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);
}