OpenWeatherMap: Fix support for custom OWM API tokens
This commit is contained in:
parent
ac6dcf0765
commit
499dec88d6
@ -52,7 +52,8 @@ IntegrationPluginOpenweathermap::IntegrationPluginOpenweathermap()
|
|||||||
settings.beginGroup("OpenWeatherMap");
|
settings.beginGroup("OpenWeatherMap");
|
||||||
if (settings.contains("apiKey")) {
|
if (settings.contains("apiKey")) {
|
||||||
m_apiKey = settings.value("apiKey").toString();
|
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();
|
settings.endGroup();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user