From 8eb8636e02d23c6d23bcdbd0257b095ea844fbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 24 Sep 2019 13:21:34 +0100 Subject: [PATCH] drop OGeneralPageWizard::GetFocus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0ad65590053460f23f1a6dcaace24d47dbbf39b1 Reviewed-on: https://gerrit.libreoffice.org/79457 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/dlg/generalpage.cxx | 9 --------- dbaccess/source/ui/dlg/generalpage.hxx | 2 -- 2 files changed, 11 deletions(-) diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx index 5fe9655c37e9..c703a2fdba8d 100644 --- a/dbaccess/source/ui/dlg/generalpage.cxx +++ b/dbaccess/source/ui/dlg/generalpage.cxx @@ -504,15 +504,6 @@ namespace dbaui return eOpenExisting; } - void OGeneralPageWizard::GetFocus() - { - OGeneralPage::GetFocus(); - if ( m_xLB_DocumentList && m_xLB_DocumentList->get_sensitive() ) - m_xLB_DocumentList->grab_focus(); - else if ( m_xDatasourceType && m_xDatasourceType->get_sensitive() ) - m_xDatasourceType->grab_focus(); - } - void OGeneralPageWizard::implInitControls( const SfxItemSet& _rSet, bool _bSaveValue ) { OGeneralPage::implInitControls( _rSet, _bSaveValue ); diff --git a/dbaccess/source/ui/dlg/generalpage.hxx b/dbaccess/source/ui/dlg/generalpage.hxx index 2b18c1c80ca9..4200b16483d2 100644 --- a/dbaccess/source/ui/dlg/generalpage.hxx +++ b/dbaccess/source/ui/dlg/generalpage.hxx @@ -162,8 +162,6 @@ namespace dbaui private: virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override; - virtual void GetFocus() override; - virtual void implInitControls( const SfxItemSet& _rSet, bool _bSaveValue ) override; virtual OUString getDatasourceName( const SfxItemSet& _rSet ) override; virtual bool approveDatasourceType( ::dbaccess::DATASOURCE_TYPE eType, OUString& _inout_rDisplayName ) override;