summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-29 00:52:09 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-29 18:22:05 +0000
commitdb1726216ba200c8a55c23a9d8c2ffd2066263a7 (patch)
treed9cb2af69b5a0b160b0c5cbf1513b532d735846b
parent20528001b5f4a652889860583bbc95861d8f8129 (diff)
process all outstanding events before shutdown, tdf#104969, tdf#104286, tdf#104399
Change-Id: Id09c3dfdc94c430d5dcb2aebb017f17db80f17e6 Reviewed-on: https://gerrit.libreoffice.org/32486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--framework/source/services/desktop.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index fffaa7675569..9ab71a9f32a2 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -63,6 +63,7 @@
#include <rtl/instance.hxx>
#include <vcl/svapp.hxx>
#include <desktop/crashreport.hxx>
+#include <vcl/scheduler.hxx>
#include <tools/errinf.hxx>
#include <unotools/configmgr.hxx>
@@ -324,6 +325,10 @@ sal_Bool SAL_CALL Desktop::terminate()
/* UNSAFE AREA ------------------------------------------------------------------------------------- */
impl_sendNotifyTerminationEvent();
+ {
+ SolarMutexGuard aGuard;
+ Scheduler::ProcessEventsToIdle();
+ }
if(
( bAskQuickStart ) &&