summaryrefslogtreecommitdiff
path: root/protocols/Weather/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-23 20:39:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-23 20:39:46 +0300
commitd9d5ee94b2fb6fe8dff7f95404a3f86caa72607a (patch)
treef130bc18ba5fcc9719a88cf34ea5738b29554ef0 /protocols/Weather/src
parent67fc09987e008aacbdd07b205a89bc6a5ef28b8a (diff)
fixes #4836 (Weather: невозможно удалить контакт из списка контактов)
Diffstat (limited to 'protocols/Weather/src')
-rw-r--r--protocols/Weather/src/weather_contacts.cpp5
1 files changed, 2 insertions, 3 deletions
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