diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-29 01:32:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-29 01:32:53 +0300 |
commit | 6aed2d7d4c6a3cb181f053ba52488cb1a0ea232c (patch) | |
tree | af9a98a5f55bd9e180d4ed1b09eb261720745e95 /src/gui/widgets/setupitem.cpp | |
parent | 6427fbb2b35b113965c4d3c9470cced433a70c6d (diff) | |
download | ManaVerse-6aed2d7d4c6a3cb181f053ba52488cb1a0ea232c.tar.gz ManaVerse-6aed2d7d4c6a3cb181f053ba52488cb1a0ea232c.tar.bz2 ManaVerse-6aed2d7d4c6a3cb181f053ba52488cb1a0ea232c.tar.xz ManaVerse-6aed2d7d4c6a3cb181f053ba52488cb1a0ea232c.zip |
Fix screenshot directory saving/loading.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 6ce8ce102..b9ea91f76 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -326,6 +326,30 @@ void SetupItemTextField::save() } } +void SetupItemTextField::cancel(const std::string &eventName A_UNUSED) +{ + load(); + if (mUseBase64) + mValue = decodeBase64String(mValue); + toWidget(); +} + +void SetupItemTextField::externalUpdated(const std::string &eventName A_UNUSED) +{ + load(); + if (mUseBase64) + mValue = decodeBase64String(mValue); + toWidget(); +} + +void SetupItemTextField::rereadValue() +{ + load(); + if (mUseBase64) + mValue = decodeBase64String(mValue); + toWidget(); +} + void SetupItemTextField::createControls() { load(); |