summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-14 16:16:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-14 16:16:07 +0300
commit29af90eb23768e9eb2c29091fefaaa10c78ff8cd (patch)
tree4340315d8f1078db570e0558c44cc12d6647c8c7 /plugins/TabSRMM
parentb05ce4acd28f460336dc33d32e5dd503574da29c (diff)
more code cleaning
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index ff4214d1c2..982ab1cdcb 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -2590,8 +2590,8 @@ void CMsgDialog::UpdateWindowState(UINT msg)
if (m_si) {
m_hTabIcon = m_hTabStatusIcon;
- if (db_get_w(m_si->hContact, m_si->pszModule, "ApparentMode", 0) != 0)
- db_set_w(m_si->hContact, m_si->pszModule, "ApparentMode", 0);
+ if (db_get_w(m_si->hContact, m_si->pszModule, "ApparentMode") != 0)
+ db_unset(m_si->hContact, m_si->pszModule, "ApparentMode");
if (Clist_GetEvent(m_si->hContact, 0))
Clist_RemoveEvent(m_si->hContact, GC_FAKE_EVENT);