From 164408bbc6a1dc2a6851429eb33682636a0ddc2e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Apr 2024 14:11:25 +0300 Subject: =?UTF-8?q?fixes=20#4365=20(=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D0=B8:=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D0=B2=D0=B7=D0=B2=D0=BE=D0=B4=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20=D0=BF=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8E=20=D0=BE=D0=BF=D1=86=D0=B8=D1=8E=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=83=20=D0=B2=D1=81=D0=B5=D1=85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/srmm_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mir_app/src/srmm_main.cpp b/src/mir_app/src/srmm_main.cpp index 3d7897de67..a053a0a6e9 100644 --- a/src/mir_app/src/srmm_main.cpp +++ b/src/mir_app/src/srmm_main.cpp @@ -37,7 +37,7 @@ class CEmptyHistoryDlg : public CDlgBase public: char *szProto; - bool bDelHistory, bForEveryone; + bool bDelHistory, bForEveryone = false; CEmptyHistoryDlg(MCONTACT hContact) : CDlgBase(g_plugin, IDD_EMPTYHISTORY), @@ -55,9 +55,8 @@ public: chkDelHistory.SetState(false); chkDelHistory.Enable(bDelHistory); - bool bEnabled = bDelHistory && bForEveryone; - chkForEveryone.SetState(!bEnabled); - chkForEveryone.Enable(bEnabled); + chkForEveryone.SetState(false); + chkForEveryone.Enable(bDelHistory && bForEveryone); LOGFONT lf; HFONT hFont = (HFONT)SendDlgItemMessage(m_hwnd, IDOK, WM_GETFONT, 0, 0); -- cgit v1.2.3