From 99917ab581314f9517569401bc79e150e4ce0881 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 8 Jun 2018 15:00:22 +0200 Subject: Better profile loading First load all profiles from profile.path, and then the profile.default if missing, after which set the default profile. Profile names and whether they're otr can be set by .profile name=string and otr=bool. --- lib/configuration/configuration.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/configuration/configuration.h') 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) { - return std::optional(vm[path].as()); + return std::optional(QString::fromStdString(this->value(path).value())); + //return std::optional(vm[path].as()); } else if constexpr(std::is_same_v) { -- cgit v1.2.1