Kaydet (Commit) d5c6efa2 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't call Application::Quit() in Desktop::terminate() on iOS

When exiting from a document in the iOS app, the Application::Quit()
would post an ImplQuitMsg user event that would however not be handled
for that document. Instead, it would be handled by the next document
opened and thus the code would immediately stop editing the document,
causing grief.

Change-Id: Id24c843b3f329673035da55f53c2134265fce003
üst b693fb5c
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment