path: root/sw/source/uibase/utlui/unotools.cxx
diff options
authorOliver Specht <>2015-12-09 07:48:01 +0100
committerOliver Specht <>2015-12-10 08:25:01 +0000
commitcc5899ff62dd4e9c76aa456fe845c5812bb8d93a (patch)
treeefad005ef0ac8f03c8a19173a49bc50217a65ca7 /sw/source/uibase/utlui/unotools.cxx
parentc4c059beb39079c204dc35088edd587ce58eadc3 (diff)
tdf#94816: fixed some problems in the mail merge wizard
Some disposeAndClear have been added as calling dialogs in the wizard like select address list, new address list, match fields crashed in dbg build in shutdown because the dialogs were still alive. The wizard is now deleted on Cancel which didn't work anymore. The timeout of the preview control of page 5 has been changed as the preview didn't even appear on Windows in a debug build The timeout handler was called after the wizard has been closed and lead to a crash. Change-Id: I9cd01f39347744bda31a312f695d27eefa077721 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Oliver Specht <> Tested-by: Oliver Specht <>
Diffstat (limited to 'sw/source/uibase/utlui/unotools.cxx')
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index 1a2c22e66ca2..5ed25c464adf 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -83,7 +83,7 @@ SwOneExampleFrame::SwOneExampleFrame( vcl::Window& rWin,
// the controller is asynchronously set
aLoadedIdle.SetIdleHdl(LINK(this, SwOneExampleFrame, TimeoutHdl));
- aLoadedIdle.SetPriority(SchedulerPriority::LOWER);
+ aLoadedIdle.SetPriority(SchedulerPriority::HIGH);
@@ -159,6 +159,8 @@ void SwOneExampleFrame::CreateControl()
void SwOneExampleFrame::DisposeControl()
+ aLoadedIdle.Stop();
+ aTopWindow.clear();
_xCursor = nullptr;