diff options
-rw-r--r-- | src/mir_app/src/srmm_main.cpp | 7 |
1 files 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); |