diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-11 16:59:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-11 16:59:04 +0300 |
commit | 7d8dce334967520fcd140ae79ec92b44ec71a00e (patch) | |
tree | c3508b4f50dff87bbf3e034968ffb2e065f24636 /plugins/TabSRMM | |
parent | 2b419ed6e80f65138a198f32a3ffe85bf39a5fcb (diff) |
unused constants removed from m_chat_int.h
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index d688d2ca85..02f2ad473f 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -1064,7 +1064,7 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa db_set_dw(pDlg->m_hContact, CHAT_MODULE, "TrayIconMask", dwMask); } Chat_SetFilters(pDlg->m_si); - SendMessage(pDlg->GetHwnd(), GC_CHANGEFILTERFLAG, 0, iFlags); + pDlg->m_iLogFilterFlags = iFlags; if (pDlg->m_bFilterEnabled) SendMessage(pDlg->GetHwnd(), GC_REDRAWLOG, 0, 0); } @@ -2439,11 +2439,6 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) } break; - case GC_CHANGEFILTERFLAG: - if (m_iLogFilterFlags == 0 && m_bFilterEnabled) - SendMessage(m_hwnd, WM_COMMAND, IDC_FILTER, 0); - break; - case GC_SHOWFILTERMENU: m_hwndFilter = CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_FILTER), m_pContainer->hwnd, FilterWndProc, (LPARAM)this); TranslateDialogDefault(m_hwndFilter); @@ -3068,14 +3063,10 @@ void ShowRoom(SESSION_INFO *si) if (M.FindWindow(hContact) != 0) return; - if (hContact != 0 && M.GetByte("limittabs", 0) && !wcsncmp(pContainer->szName, L"default", 6)) { - if ((pContainer = FindMatchingContainer(L"default")) == nullptr) { - wchar_t szName[CONTAINER_NAMELEN + 1]; - mir_snwprintf(szName, L"default"); - if ((pContainer = CreateContainer(szName, CNT_CREATEFLAG_CLONED, hContact)) == nullptr) + if (hContact != 0 && M.GetByte("limittabs", 0) && !wcsncmp(pContainer->szName, L"default", 6)) + if ((pContainer = FindMatchingContainer(L"default")) == nullptr) + if ((pContainer = CreateContainer(L"default", CNT_CREATEFLAG_CLONED, hContact)) == nullptr) return; - } - } wchar_t *contactName = pcli->pfnGetContactDisplayName(hContact, 0); |