diff options
-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);
+ }
}
}
|