summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-13 16:53:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-13 16:53:58 +0300
commitc3a31c021c5a9127b9e5bbc196adf3c04c7c7b7c (patch)
tree580dfe449636692cbe308a08facbd817f851eab8 /plugins/TabSRMM
parentcd0a24bd89c1ed1a5baf075fc95e79cc2230526a (diff)
VS2010 compilation fix
Diffstat (limited to 'plugins/TabSRMM')
-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) {