diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 2 | ||||
-rw-r--r-- | plugins/Scriver/src/msgs.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 6 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgs.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 98908c14ee..921247b76a 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -366,7 +366,7 @@ CScriverWindow::CScriverWindow(int iDialog, SESSION_INFO *si) m_autoClose = CLOSE_ON_CANCEL;
}
-void CScriverWindow::CloseTab(bool)
+void CScriverWindow::CloseTab()
{
Close();
}
diff --git a/plugins/Scriver/src/msgs.h b/plugins/Scriver/src/msgs.h index df69df5f9a..f73be3d2ba 100644 --- a/plugins/Scriver/src/msgs.h +++ b/plugins/Scriver/src/msgs.h @@ -91,7 +91,7 @@ protected: CScriverWindow(int iDialog, SESSION_INFO* = nullptr);
public:
- virtual void CloseTab(bool bForced = false) override;
+ virtual void CloseTab() override;
ParentWindowData *m_pParent;
int m_minLogBoxHeight, m_minEditBoxHeight;
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: diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index a88344eb34..a37b4d55a8 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -499,7 +499,7 @@ public: virtual int Resizer(UTILRESIZECONTROL *urc) override;
virtual void AddLog() override;
- virtual void CloseTab(bool bForced = false) override;
+ virtual void CloseTab() override;
virtual void RedrawLog() override;
virtual void ScrollToBottom() override;
virtual void ShowFilterMenu() override;
|