From cf40525e22dec96b065f1a590fccd9bc722be28a Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 21 May 2019 17:31:09 +0200 Subject: [PATCH] fix settings loading --- openweathermap/devicepluginopenweathermap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openweathermap/devicepluginopenweathermap.cpp b/openweathermap/devicepluginopenweathermap.cpp index 3f36cbd8..e41f44ee 100644 --- a/openweathermap/devicepluginopenweathermap.cpp +++ b/openweathermap/devicepluginopenweathermap.cpp @@ -68,8 +68,8 @@ DevicePluginOpenweathermap::DevicePluginOpenweathermap() // max 50000 calls/day m_apiKey = "c1b9d5584bb740804871583f6c62744f"; - QSettings settings(NymeaSettings::settingsPath()); - settings.beginGroup("openweathermap"); + QSettings settings(NymeaSettings::settingsPath() + "/nymead.conf", QSettings::IniFormat); + settings.beginGroup("OpenWeatherMap"); if (settings.contains("apiKey")) { m_apiKey = settings.value("apiKey").toString(); qCDebug(dcOpenWeatherMap()) << "Using custom API key:" << m_apiKey.replace(m_apiKey.length() - 10, 10, "**********");