From 499dec88d66d29a2b3f9d0dda04ce1d89253d0fd Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 23 Mar 2020 13:30:02 +0100 Subject: [PATCH] OpenWeatherMap: Fix support for custom OWM API tokens --- openweathermap/integrationpluginopenweathermap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openweathermap/integrationpluginopenweathermap.cpp b/openweathermap/integrationpluginopenweathermap.cpp index 4be1c5ab..4f141513 100644 --- a/openweathermap/integrationpluginopenweathermap.cpp +++ b/openweathermap/integrationpluginopenweathermap.cpp @@ -52,7 +52,8 @@ IntegrationPluginOpenweathermap::IntegrationPluginOpenweathermap() 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, "**********"); + QString printedCopy = m_apiKey; + qCDebug(dcOpenWeatherMap()) << "Using custom API key:" << printedCopy.replace(printedCopy.length() - 10, 10, "**********"); } settings.endGroup();