From 6a7003cec451a20e22d74ebeb48a0e50d1f73309 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Mar 2017 19:36:59 +0300 Subject: 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. --- src/configuration.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/configuration.cpp') 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( data))->getData()); } + else if (type == VariableData::DATA_FLOAT) + { + defaultValue = toString((static_cast( + data))->getData()); + } } else { -- cgit v1.2.3-60-g2f50