summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-10 19:36:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-10 19:36:50 +0300
commitc37011e0504633c4a5fb06d5016b4283e69dbe86 (patch)
treeb3cbe829f8b56dc978eb309902ab84af1c32ad0f /plugins/TabSRMM
parent91dfff8c6757dadd758fecceef2964eb294e5528 (diff)
fixes #1022 (in tabSRMM log options dialog the plugins' combo is always disabled)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgoptions.cpp10
1 files changed, 5 insertions, 5 deletions
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