diff options
-rw-r--r-- | framework/source/services/desktop.cxx | 5 |
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 ) && |