From 6bb048378e2b73c908f4512d9a925e736bd44fda Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 May 2021 13:26:56 +0300 Subject: CCtrlCombo::GetCurData = suitable helper for combo boxes --- src/core/stdclist/src/clistopts.cpp | 2 +- src/core/stdfile/src/fileopts.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/stdclist/src/clistopts.cpp b/src/core/stdclist/src/clistopts.cpp index fa86e449df..623f3b6700 100644 --- a/src/core/stdclist/src/clistopts.cpp +++ b/src/core/stdclist/src/clistopts.cpp @@ -96,7 +96,7 @@ public: g_plugin.setWord("IconFlashTime", blink.GetPosition()); g_plugin.setByte("DisableTrayFlash", IsDlgButtonChecked(m_hwnd, IDC_DISABLEBLINK)); - PROTOACCOUNT *pa = (PROTOACCOUNT *)status.GetItemData(status.GetCurSel()); + PROTOACCOUNT *pa = (PROTOACCOUNT *)status.GetCurData(); if (pa == nullptr) g_plugin.delSetting("PrimaryStatus"); else diff --git a/src/core/stdfile/src/fileopts.cpp b/src/core/stdfile/src/fileopts.cpp index 34185f2312..006273dfd1 100644 --- a/src/core/stdfile/src/fileopts.cpp +++ b/src/core/stdfile/src/fileopts.cpp @@ -169,7 +169,7 @@ public: void onSelChanged_Combo(CCtrlCombo*) { - int iScanner = cmbScanCmdLine.GetItemData(cmbScanCmdLine.GetCurSel()); + int iScanner = cmbScanCmdLine.GetCurData(); if (iScanner >= _countof(virusScanners) || iScanner < 0) return; -- cgit v1.2.3