Kaydet (Commit) 51ac2bf2 authored tarafından Oliver Specht's avatar Oliver Specht Kaydeden (comit) Thorsten Behrens

tdf#92732: fix vclptr lifecycle for index entry editing dialog

Call SwViewShell::SetCareWin() in closeHdl instead of d'tor
since with care window set the d'tor is never called

Change-Id: Ieb8280ab57c3bccf95ce2ce96937aab261133ce0
Reviewed-on: https://gerrit.libreoffice.org/18330Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 012a7115
...@@ -618,6 +618,7 @@ IMPL_LINK_NOARG_TYPED(SwIndexMarkPane, CloseHdl, Button*, void) ...@@ -618,6 +618,7 @@ IMPL_LINK_NOARG_TYPED(SwIndexMarkPane, CloseHdl, Button*, void)
} }
else else
{ {
SwViewShell::SetCareWin( 0 );
m_rDialog.EndDialog(); m_rDialog.EndDialog();
} }
} }
...@@ -920,7 +921,6 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox ) ...@@ -920,7 +921,6 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox )
SwIndexMarkPane::~SwIndexMarkPane() SwIndexMarkPane::~SwIndexMarkPane()
{ {
delete pTOXMgr; delete pTOXMgr;
SwViewShell::SetCareWin( 0 );
} }
void SwIndexMarkPane::ReInitDlg(SwWrtShell& rWrtShell, SwTOXMark* pCurTOXMark) void SwIndexMarkPane::ReInitDlg(SwWrtShell& rWrtShell, SwTOXMark* pCurTOXMark)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment