diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-12 23:04:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-12 23:04:27 +0300 |
commit | 596456886db5df48599f62210500e0bbfa9d7da7 (patch) | |
tree | 58c555add5372d37356b6397cde43c3d2cbac399 /plugins/TabSRMM/src/chat_window.cpp | |
parent | b9c2a6953f0fa75a1c4de6079e9c97b3a60be7e5 (diff) |
- fixes #742 (closing groupchat tab crashes Miranda);
- the bForce parameter of CSrmmBaseDialog::CloseTab considered useless
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index 9eade66075..b78ef9461e 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -1948,7 +1948,7 @@ void CChatRoomDlg::AddLog() CSrmmBaseDialog::AddLog(); } -void CChatRoomDlg::CloseTab(bool bForced) +void CChatRoomDlg::CloseTab() { int iTabs = TabCtrl_GetItemCount(m_hwndParent); if (iTabs == 1 && CMimAPI::m_shutDown == 0) { @@ -1963,7 +1963,7 @@ void CChatRoomDlg::CloseTab(bool bForced) // the previously open tab. // normally, this tab has the same index after the deletion of the formerly active tab // unless, of course, we closed the last (rightmost) tab. - if (!m_pContainer->bDontSmartClose && iTabs > 1 && !bForced) { + if (!m_pContainer->bDontSmartClose && iTabs > 1) { if (i == iTabs - 1) i--; else @@ -2921,7 +2921,7 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) } _dlgReturn(m_hwnd, TRUE); } - CloseTab(true); + CloseTab(); return 0; case DM_SAVESIZE: |