From ed959f420d9b8371b1520f76cf0ade857f3bd64f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Apr 2025 20:01:57 +0300 Subject: =?UTF-8?q?fixes=20#4970=20(Weather:=20=D0=BD=D0=B5=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=B5=D1=82=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D1=82=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Weather/src/weather_update.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'protocols/Weather/src/weather_update.cpp') diff --git a/protocols/Weather/src/weather_update.cpp b/protocols/Weather/src/weather_update.cpp index 82437dbb72..2b4f86d9ca 100644 --- a/protocols/Weather/src/weather_update.cpp +++ b/protocols/Weather/src/weather_update.cpp @@ -143,15 +143,6 @@ int CWeatherProto::UpdateWeather(MCONTACT hContact) // set the update tag setByte(hContact, "IsUpdated", TRUE); - // save current condition for default station to be displayed after the update - int old_status = m_iStatus; - m_iStatus = iStatus; - - // a workaround for a default station that currently have an n/a icon assigned - if (m_iStatus == ID_STATUS_OFFLINE) - m_iStatus = ID_STATUS_CONNECTING; - ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); - // logging if (Ch) { // play the sound event -- cgit v1.2.3