From fbff75a64c7449aac85d640f67b1de147db35c3e Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 28 Oct 2015 16:11:55 +0100 Subject: tdf#89337: Fixing crash in edit/index dialog, again the fix of tdf#92732 moved the crash from pressing Close/OK to pressing the window closer. Now the CareWindow is set in dispose and this works for all Change-Id: Id9c272acec48890556a5042c0f5310e69c0a67da Reviewed-on: https://gerrit.libreoffice.org/19645 Tested-by: Jenkins Reviewed-by: Oliver Specht --- sw/source/ui/index/swuiidxmrk.cxx | 7 ++++++- sw/source/uibase/inc/swuiidxmrk.hxx | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index a1726f11421e..c2f4fa4aca09 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -616,7 +616,6 @@ IMPL_LINK_NOARG_TYPED(SwIndexMarkPane, CloseHdl, Button*, void) } else { - SwViewShell::SetCareWin( 0 ); m_rDialog.EndDialog(); } } @@ -976,6 +975,12 @@ void SwIndexMarkModalDlg::Apply() m_aContent.Apply(); } +void SwIndexMarkModalDlg::dispose() +{ + SwViewShell::SetCareWin(0); + SvxStandardDialog::dispose(); +} + class SwCreateAuthEntryDlg_Impl : public ModalDialog { VclPtr pFixedTexts[AUTH_FIELD_END]; diff --git a/sw/source/uibase/inc/swuiidxmrk.hxx b/sw/source/uibase/inc/swuiidxmrk.hxx index 44db42e84b95..41ab57482e67 100644 --- a/sw/source/uibase/inc/swuiidxmrk.hxx +++ b/sw/source/uibase/inc/swuiidxmrk.hxx @@ -170,6 +170,7 @@ public: SwIndexMarkModalDlg(vcl::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark); virtual void Apply() override; + virtual void dispose() override; }; class SwAuthMarkModalDlg; -- cgit