diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-04 17:03:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-04 17:03:28 +0300 |
commit | f531ff887729783a7fe7a3e12ad12f658eefc7b0 (patch) | |
tree | 9e1844429448b6527ef7ca87163e44eafce250d8 /plugins/Import/src | |
parent | 1c2e5d128a7176ae827dda1e2a8fcc64e772a148 (diff) |
UI classes:
- CDlgBase::m_bSucceeded variable introduced to check whether IDOK was pressed or not;
- unused/useless buttons with id=IDOK or IDCANCEL removed;
- brnOk.OnClick replaced with OnApply calls;
- unused/useless calls of EndDialog/EndModal removed;
- minor code cleaning
Diffstat (limited to 'plugins/Import/src')
-rw-r--r-- | plugins/Import/src/ui.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/Import/src/ui.cpp b/plugins/Import/src/ui.cpp index 14e7122a20..c181adc415 100644 --- a/plugins/Import/src/ui.cpp +++ b/plugins/Import/src/ui.cpp @@ -31,7 +31,7 @@ class CContactImportDlg : public CDlgBase CImportPattern *m_pPattern = 0; wchar_t m_wszFileName[MAX_PATH]; - CCtrlButton m_btnOpenFile, m_btnOk; + CCtrlButton m_btnOpenFile; CCtrlCombo m_cmbFileType; CCtrlEdit edtFileName; @@ -41,12 +41,10 @@ public: m_hContact(hContact), edtFileName(this, IDC_FILENAME), m_cmbFileType(this, IDC_FILETYPE), - m_btnOk(this, IDOK), m_btnOpenFile(this, IDC_OPEN_FILE) { m_wszFileName[0] = 0; - m_btnOk.OnClick = Callback(this, &CContactImportDlg::onClick_Ok); m_btnOpenFile.OnClick = Callback(this, &CContactImportDlg::onClick_OpenFile); } @@ -76,11 +74,6 @@ public: return true; } - void onClick_Ok(CCtrlButton*) - { - EndModal(1); - } - void onClick_OpenFile(CCtrlButton*) { int iCur = m_cmbFileType.GetCurSel(); |