summaryrefslogtreecommitdiff
path: root/protocols/Weather/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src')
-rw-r--r--protocols/Weather/src/weather_data.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_data.cpp b/protocols/Weather/src/weather_data.cpp
index 5294befb0f..a02ae0dc1f 100644
--- a/protocols/Weather/src/weather_data.cpp
+++ b/protocols/Weather/src/weather_data.cpp
@@ -248,8 +248,10 @@ void CWeatherProto::ConvertDataValue(WIDATAITEM *p)
MHttpResponse* CWeatherProto::RunQuery(const wchar_t *id, int days)
{
wchar_t *pKey = m_szApiKey;
- if (!mir_wstrlen(pKey))
+ if (!mir_wstrlen(pKey)) {
+ WPShowMessage(TranslateT("You need to obtain the personal key and enter it in the account's Options dialog"), SM_WARNING);
return nullptr;
+ }
auto *pReq = new MHttpRequest(REQUEST_GET);
pReq->flags = NLHRF_HTTP11 | NLHRF_DUMPASTEXT;