From e183525eec19956eef36e37ef217629640ce500a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Jan 2025 13:04:42 +0300 Subject: =?UTF-8?q?fixes=20#4860=20(Weather:=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BF=D0=BE=D0=BF=D0=B0=D0=BF=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B5?= =?UTF-8?q?=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B0=20=D0=BA=20API=20?= =?UTF-8?q?=D0=B2=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Weather/src/weather_data.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Weather/src/weather_data.cpp') 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; -- cgit v1.2.3