From 4cd42b1ab1483d8c3c41fcc295b0763522fc7ae2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 14 Apr 2017 21:50:34 +0300 Subject: StdMsg: fix for "Auto close window after send" option --- src/core/stdmsg/src/msgdialog.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 675f0b7484..152b5dfa16 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -352,10 +352,12 @@ void CSrmmWindow::onClick_Ok(CCtrlButton *pButton) m_message.SetText(L""); - if (g_dat.bAutoClose) - DestroyWindow(m_hwnd); - else if (g_dat.bAutoMin) - Show(SW_MINIMIZE); + if (!g_Settings.bTabsEnable) { + if (g_dat.bAutoClose) + ::PostMessage(m_hwndParent, WM_CLOSE, 0, 0); + else if (g_dat.bAutoMin) + Show(SW_MINIMIZE); + } } } -- cgit v1.2.3