summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp2
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp2
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);