From d9d5ee94b2fb6fe8dff7f95404a3f86caa72607a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jan 2025 20:39:46 +0300 Subject: =?UTF-8?q?fixes=20=20#4836=20(Weather:=20=D0=BD=D0=B5=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=20=D0=B8=D0=B7=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Weather/src/weather_contacts.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Weather/src') diff --git a/protocols/Weather/src/weather_contacts.cpp b/protocols/Weather/src/weather_contacts.cpp index 3aaf44a1e3..f63c4fa175 100644 --- a/protocols/Weather/src/weather_contacts.cpp +++ b/protocols/Weather/src/weather_contacts.cpp @@ -451,9 +451,8 @@ bool CWeatherProto::OnContactDeleted(MCONTACT hContact, uint32_t) // exit this function if it is not default station ptrW tszID(getWStringA(hContact, "ID")); - if (tszID != NULL) - if (mir_wstrcmp(tszID, opt.Default)) - return false; + if (mir_wstrcmp(tszID, opt.Default)) + return true; // now the default station is deleted, try to get a new one -- cgit v1.2.3