diff options
| author | George Hazan <ghazan@miranda.im> | 2021-05-11 13:26:56 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-05-11 13:26:56 +0300 |
| commit | 6bb048378e2b73c908f4512d9a925e736bd44fda (patch) | |
| tree | 59fa9ffce6e00d82c3b6254b7e5d2cdcde3bdb89 /src/core | |
| parent | 383409527e474e83078178f5e80975b64fb5ffcf (diff) | |
CCtrlCombo::GetCurData = suitable helper for combo boxes
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/stdclist/src/clistopts.cpp | 2 | ||||
| -rw-r--r-- | src/core/stdfile/src/fileopts.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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;
|
