summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-09 19:36:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-09 19:36:59 +0300
commit6a7003cec451a20e22d74ebeb48a0e50d1f73309 (patch)
tree24f8e90015b9cb79bf4cac1b3520bcec018d4676 /src/configuration.cpp
parent1076ed1788adb2499d9b369d190243f3b70921c8 (diff)
downloadmv-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.gz
mv-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.bz2
mv-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.xz
mv-6a7003cec451a20e22d74ebeb48a0e50d1f73309.zip
Add missing default for float fields loading as string config parameters.
Thus fix wrong gui transparency at first start if open settings and press apply.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 361c937fd..40d701e76 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -523,6 +523,11 @@ std::string Configuration::getStringValue(const std::string &key) const
defaultValue = toString((static_cast<const IntData*>(
data))->getData());
}
+ else if (type == VariableData::DATA_FLOAT)
+ {
+ defaultValue = toString((static_cast<const FloatData*>(
+ data))->getData());
+ }
}
else
{