diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-14 21:50:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-14 21:50:34 +0300 |
commit | 4cd42b1ab1483d8c3c41fcc295b0763522fc7ae2 (patch) | |
tree | 922357360f7097c043198990554caf7ed1da3297 /src | |
parent | 2e8ecee52cda3e486fe1f1290163735b894a9025 (diff) |
StdMsg: fix for "Auto close window after send" option
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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);
+ }
}
}
|