summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/TabSRMM/src/msgoptions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp
index 3027e34e79..b2cb349dcf 100644
--- a/plugins/TabSRMM/src/msgoptions.cpp
+++ b/plugins/TabSRMM/src/msgoptions.cpp
@@ -641,7 +641,7 @@ class COptLogDlg : public CDlgBase
CCtrlCheck chkAlwaysTrim, chkLoadUnread, chkLoadCount, chkLoadTime;
CCtrlCombo cmbLogDisplay;
- int have_ieview = 0, have_hpp = 0;
+ int 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
@@ -676,6 +676,9 @@ 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");
}
virtual void OnInitDialog() override
@@ -723,9 +726,6 @@ public:
Utils::enableDlgControl(m_hwnd, IDC_TRIM, maxhist != 0);
CheckDlgButton(m_hwnd, IDC_ALWAYSTRIM, maxhist != 0);
- have_ieview = ServiceExists(MS_IEVIEW_WINDOW);
- have_hpp = ServiceExists("History++/ExtGrid/NewWindow");
-
cmbLogDisplay.AddString(TranslateT("Internal message log"));
cmbLogDisplay.SetCurSel(0);
if (have_ieview || have_hpp) {