diff options
Diffstat (limited to 'protocols/Weather/src/weather_contacts.cpp')
-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 |