diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-23 20:39:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-23 20:39:46 +0300 |
commit | d9d5ee94b2fb6fe8dff7f95404a3f86caa72607a (patch) | |
tree | f130bc18ba5fcc9719a88cf34ea5738b29554ef0 | |
parent | 67fc09987e008aacbdd07b205a89bc6a5ef28b8a (diff) |
fixes #4836 (Weather: невозможно удалить контакт из списка контактов)
-rw-r--r-- | protocols/Weather/src/weather_contacts.cpp | 5 |
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 |