diff options
author | George Hazan <ghazan@miranda.im> | 2018-10-30 13:23:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-10-30 13:23:54 +0300 |
commit | f307c5760e92529bf9653c528e624070b0cca2cf (patch) | |
tree | 6e1c21826353ac4a9ce0e4ce0036dd4baa92dcec /plugins/TabSRMM/src/msgdialog.cpp | |
parent | 767c5e08a6e63cba75da64d2d344339ea72d70bd (diff) |
tabSRMM:
- obsolete M.GetDword & M.GetByte calls removed;
- useless m_isFavorite & m_isRecent moved from CContactCache to CMimAPI;
- other code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index f64daf18c7..823515e596 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -662,7 +662,7 @@ bool CSrmmWindow::OnInitDialog() GetMyNick();
- m_iMultiSplit = (int)M.GetDword(SRMSGMOD, "multisplit", 150);
+ m_iMultiSplit = db_get_dw(0, SRMSGMOD, "multisplit", 150);
m_nTypeMode = PROTOTYPE_SELFTYPING_OFF;
SetTimer(m_hwnd, TIMERID_TYPE, 1000, nullptr);
m_iLastEventType = 0xffffffff;
@@ -1044,13 +1044,11 @@ void CSrmmWindow::UpdateTitle() m_pContainer->UpdateTitle(m_hContact);
UpdateTrayMenuState(this, TRUE);
- if (m_cache->isFavorite())
- AddContactToFavorites(m_hContact, m_cache->getNick(), szActProto, m_wszStatus, m_wStatus,
- Skin_LoadProtoIcon(m_cache->getProto(), m_cache->getStatus()), 0, PluginConfig.g_hMenuFavorites);
+ if (M.IsFavorite(m_hContact))
+ AddContactToFavorites(m_hContact, m_cache->getNick(), szActProto, m_wszStatus, m_wStatus, Skin_LoadProtoIcon(m_cache->getProto(), m_cache->getStatus()), 0, PluginConfig.g_hMenuFavorites);
- if (m_cache->isRecent())
- AddContactToFavorites(m_hContact, m_cache->getNick(), szActProto, m_wszStatus, m_wStatus,
- Skin_LoadProtoIcon(m_cache->getProto(), m_cache->getStatus()), 0, PluginConfig.g_hMenuRecent);
+ if (M.IsRecent(m_hContact))
+ AddContactToFavorites(m_hContact, m_cache->getNick(), szActProto, m_wszStatus, m_wStatus, Skin_LoadProtoIcon(m_cache->getProto(), m_cache->getStatus()), 0, PluginConfig.g_hMenuRecent);
m_pPanel.Invalidate();
if (m_pWnd)
|