From f531ff887729783a7fe7a3e12ad12f658eefc7b0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2020 17:03:28 +0300 Subject: 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 --- plugins/Import/src/ui.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/Import/src') 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(); -- cgit v1.2.3