diff options
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index 1df6bb5..59c837c 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -49,7 +49,8 @@ public: } if constexpr(std::is_same_v<T, QString>) { - return std::optional<QString>(vm[path].as<const char*>()); + return std::optional<QString>(QString::fromStdString(this->value<std::string>(path).value())); + //return std::optional<QString>(vm[path].as<const char*>()); } else if constexpr(std::is_same_v<T, std::string>) { |