summaryrefslogtreecommitdiff
path: root/plugins/Import
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 /plugins/Import
parent383409527e474e83078178f5e80975b64fb5ffcf (diff)
CCtrlCombo::GetCurData = suitable helper for combo boxes
Diffstat (limited to 'plugins/Import')
-rw-r--r--plugins/Import/src/miranda.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp
index 3209f7ec24..12c0255c83 100644
--- a/plugins/Import/src/miranda.cpp
+++ b/plugins/Import/src/miranda.cpp
@@ -181,13 +181,8 @@ void CMirandaPageDlg::onClick_Path(CCtrlButton*)
void CMirandaPageDlg::onChange_Pattern(CCtrlCombo*)
{
- m_iFileType = -1;
- int iCur = m_cmbFileType.GetCurSel();
- if (iCur == -1)
- return;
-
// standard import for Miranda
- m_iFileType = m_cmbFileType.GetItemData(iCur);
+ m_iFileType = m_cmbFileType.GetCurData();
if (m_iFileType == -1) {
g_pBatch->m_pPattern = nullptr;
btnPath.Hide();