diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-25 10:43:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-25 12:45:20 +0100 |
commit | 82f473c87da72a3d7aac80249d408a02caa25afa (patch) | |
tree | e4c96ab9e5e791896b539c74f537f8a79b99a448 /sfx2/source/dialog/basedlgs.cxx | |
parent | 34d6ad3df09ff7a68d00ae69cc03796b1566dfa1 (diff) |
fix crash on pressing esc in search/replace dialog
activate can be called during tear down as focus is transferred between
widgets as they die
Change-Id: Ia8d65b4d3c2e0ea4b8238e598ace0cc0d0e7d738
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113080
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog/basedlgs.cxx')
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index fcebc6ea041c..1f10f73ce5e4 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -118,7 +118,7 @@ IMPL_LINK_NOARG(SfxDialogController, FocusChangeHdl, weld::Container&, void) void SfxModelessDialogController::Activate() { - if (!m_xImpl) + if (!m_xImpl || !m_xImpl->pMgr) return; m_pBindings->SetActiveFrame(m_xImpl->pMgr->GetFrame()); m_xImpl->pMgr->Activate_Impl(); |