summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-13 16:08:17 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-01-16 11:23:08 +0000
commit36f83debd1b8a200515fafdf66bdd7a4aec01ad5 (patch)
treed0937576ae8b06a5aa5252a9e1b6d74393215282
parent502ef71db74c3cdb1433c3402a0d93971dc47f1b (diff)
fdo#38515: Fixed crasher in dialog destructor
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
-rw-r--r--sw/source/ui/index/cnttab.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index ae7dfadea1..fcfb2f8f4d 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -358,6 +358,9 @@ SwMultiTOXTabDialog::~SwMultiTOXTabDialog()
{
SW_MOD()->GetModuleConfig()->SetShowIndexPreview(aShowExampleCB.IsChecked());
+ // fdo#38515 Avoid setting focus on deleted controls in the destructors
+ EnableInput( sal_False );
+
for(sal_uInt16 i = 0; i < nTypeCount; i++)
{
delete pFormArr[i];