From c37011e0504633c4a5fb06d5016b4283e69dbe86 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Nov 2017 19:36:50 +0300 Subject: fixes #1022 (in tabSRMM log options dialog the plugins' combo is always disabled) --- plugins/TabSRMM/src/msgoptions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 671dfa4cb2..da130dc338 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -649,7 +649,7 @@ class COptLogDlg : public CDlgBase CCtrlSpin spnLeft, spnRight, spnLoadCount, spnLoadTime, spnTrim; CCtrlCombo cmbLogDisplay; - int have_ieview, have_hpp; + bool have_ieview, have_hpp; // configure the option page - hide most of the settings here when either IEView // or H++ is set as the global message log viewer. Showing these options may confuse @@ -661,9 +661,9 @@ class COptLogDlg : public CDlgBase LRESULT r = cmbLogDisplay.GetCurSel(); Utils::showDlgControl(m_hwnd, IDC_EXPLAINMSGLOGSETTINGS, r == 0 ? SW_HIDE : SW_SHOW); Utils::showDlgControl(m_hwnd, IDC_LOGOPTIONS, r == 0 ? SW_SHOW : SW_HIDE); - cmbLogDisplay.Enable(r != 0); + for (int i = 0; i < _countof(__ctrls); i++) - Utils::enableDlgControl(m_hwnd, __ctrls[i], r == 0 ? TRUE : FALSE); + Utils::enableDlgControl(m_hwnd, __ctrls[i], r == 0); } public: @@ -690,8 +690,8 @@ public: chkAlwaysTrim.OnChange = Callback(this, &COptLogDlg::onChange_Trim); chkLoadTime.OnChange = chkLoadCount.OnChange = chkLoadUnread.OnChange = Callback(this, &COptLogDlg::onChange_Load); - have_ieview = ServiceExists(MS_IEVIEW_WINDOW); - have_hpp = ServiceExists("History++/ExtGrid/NewWindow"); + have_ieview = ServiceExists(MS_IEVIEW_WINDOW) != 0; + have_hpp = ServiceExists("History++/ExtGrid/NewWindow") != 0; } virtual void OnInitDialog() override -- cgit v1.2.3