From c3a31c021c5a9127b9e5bbc196adf3c04c7c7b7c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Sep 2017 16:53:58 +0300 Subject: VS2010 compilation fix --- plugins/TabSRMM/src/msgoptions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') 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) { -- cgit v1.2.3