summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-13 16:08:17 +0100
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-13 16:12:56 +0100
commit4914b23e7e91b184d69eb00a74ce1c463c5754a7 (patch)
treefca170f0f06e03060b3394512ce9861ef261c691
parentab84770bb61ffb2675548e11a6a45059cb4f6c8e (diff)
fdo#38515: Fixed crasher in dialog destructor
-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 414bc5f51888..b4fc42aa29e3 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -356,6 +356,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];