diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index b3af82593e66..8a91db555c14 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -243,7 +243,11 @@ sal_Bool SAL_CALL Desktop::terminate() if (bRestartableMainLoop) { +#ifndef IOS // or ANDROID? + // In the iOS app, posting the ImplQuitMsg user event will be too late, it will not be handled during the + // lifetime of the current document, but handled for the next document opened, which thus will break horribly. Application::Quit(); +#endif return true; } if ( ! bFramesClosed )