From facb19a65f291270f842fbf5b71a20ba4bd92d73 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Oct 2024 18:34:06 +0300 Subject: unneeded 'else' removed --- src/mir_app/src/srmm_base.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index b6420f9d7b..aa286bd762 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -660,7 +660,8 @@ INT_PTR CSrmmBaseDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) LPNMHDR hdr = (LPNMHDR)lParam; if (hdr->hwndFrom == m_pLog->GetHwnd()) m_pLog->Notify(wParam, lParam); - else if (hdr->code == EN_MSGFILTER) { + + if (hdr->code == EN_MSGFILTER) { auto *F = ((MSGFILTER *)lParam); if ((F->msg == WM_LBUTTONDOWN || F->msg == WM_KEYUP || F->msg == WM_LBUTTONUP) && F->nmhdr.idFrom == IDC_SRMM_MESSAGE) { int bBold = IsDlgButtonChecked(m_hwnd, IDC_SRMM_BOLD); -- cgit v1.2.3