From cc5899ff62dd4e9c76aa456fe845c5812bb8d93a Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 9 Dec 2015 07:48:01 +0100 Subject: 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: https://gerrit.libreoffice.org/20489 Tested-by: Jenkins Reviewed-by: Oliver Specht Tested-by: Oliver Specht --- sw/source/uibase/utlui/unotools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/source/uibase/utlui/unotools.cxx') 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); CreateControl(); @@ -159,6 +159,8 @@ void SwOneExampleFrame::CreateControl() void SwOneExampleFrame::DisposeControl() { + aLoadedIdle.Stop(); + aTopWindow.clear(); _xCursor = nullptr; if(_xControl.is()) _xControl->dispose(); -- cgit v1.2.3