Resolves: tdf#127859 fix header/footer dialog crash
Change-Id: I643afbac841bbd1bc7857e25d8e1d98b4d48e881
Reviewed-on: https://gerrit.libreoffice.org/79842
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sc/source/ui/inc/tphf.hxx b/sc/source/ui/inc/tphf.hxx
index 53c71e3..edd87f2 100644
--- a/sc/source/ui/inc/tphf.hxx
+++ b/sc/source/ui/inc/tphf.hxx
@@ -49,7 +49,6 @@ private:
std::unique_ptr<weld::Button> m_xBtnEdit;
DECL_LINK(BtnHdl, weld::Button&, void);
DECL_LINK( HFEditHdl, void*, void );
DECL_LINK(TurnOnHdl, weld::ToggleButton&, void);
};
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index d130d26..dc3d208 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -142,15 +142,6 @@ IMPL_LINK_NOARG(ScHFPage, TurnOnHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ScHFPage, BtnHdl, weld::Button&, void)
{
// When the Edit-Dialog is directly called from the Button's Click-Handler,
// the GrabFocus from the Edit-Dialog under OS/2 doesn't work.(Bug #41805#).
// With the new StarView, this workaround should be again considered!
Application::PostUserEvent( LINK( this, ScHFPage, HFEditHdl ), nullptr, true );
}
IMPL_LINK_NOARG(ScHFPage, HFEditHdl, void*, void)
{
SfxViewShell* pViewSh = SfxViewShell::Current();
if ( !pViewSh )