summaryrefslogtreecommitdiff
path: root/protocols/CloudFile/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-05-11 13:26:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-05-11 13:26:56 +0300
commit6bb048378e2b73c908f4512d9a925e736bd44fda (patch)
tree59fa9ffce6e00d82c3b6254b7e5d2cdcde3bdb89 /protocols/CloudFile/src
parent383409527e474e83078178f5e80975b64fb5ffcf (diff)
CCtrlCombo::GetCurData = suitable helper for combo boxes
Diffstat (limited to 'protocols/CloudFile/src')
-rw-r--r--protocols/CloudFile/src/options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/CloudFile/src/options.cpp b/protocols/CloudFile/src/options.cpp
index 0ac7c120a0..de961a314a 100644
--- a/protocols/CloudFile/src/options.cpp
+++ b/protocols/CloudFile/src/options.cpp
@@ -55,8 +55,7 @@ bool COptionsMainDlg::OnInitDialog()
bool COptionsMainDlg::OnApply()
{
- int iItem = m_defaultService.GetCurSel();
- CCloudService *service = (CCloudService*)m_defaultService.GetItemData(iItem);
+ CCloudService *service = (CCloudService*)m_defaultService.GetCurData();
if (service)
g_plugin.setString("DefaultService", service->GetAccountName());
else