diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-25 00:12:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-25 00:12:44 +0300 |
commit | 0c0746885eff44505d3c357eb79720f90f8e6c83 (patch) | |
tree | aad4ac8a94ab87da446f3f5183786f0936d2cb51 | |
parent | 05143c86700a9903b5e65eb8d38ecef6553853ea (diff) |
fixes #1596 (tabSRMM rarely crashes after click on the Close toolbar button)
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 692424be90..6ce5bbe22f 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -227,7 +227,7 @@ LRESULT CTabBaseDlg::DM_MsgWindowCmdHandler(UINT cmd, WPARAM wParam, LPARAM lPar return FALSE; case IDC_CLOSE: - SendMessage(m_hwnd, WM_CLOSE, 1, 0); + PostMessage(m_hwnd, WM_CLOSE, 1, 0); break; case IDC_NAME: diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 756ac3209d..168ed1334f 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -316,7 +316,7 @@ int CTabBaseDlg::MsgWindowMenuHandler(int selection, int menuId) SendMessage(m_pContainer->m_hwnd, WM_CLOSE, 0, 0);
return 1;
case ID_TABMENU_CLOSETAB:
- SendMessage(m_hwnd, WM_CLOSE, 1, 0);
+ PostMessage(m_hwnd, WM_CLOSE, 1, 0);
return 1;
case ID_TABMENU_SAVETABPOSITION:
db_set_dw(m_hContact, SRMSGMOD_T, "tabindex", m_iTabID * 100);
|