From 080e4550257a90597c241f83fd766b99c83ba6e8 Mon Sep 17 00:00:00 2001 From: Michael Warner Date: Wed, 7 Jul 2021 21:12:28 -0400 Subject: tdf#141097 Revert "Veto process exit while an OLE client is connected" This reverts changes that were made to prevent process exit when an OLE client is connected. These commits had the side effect of preventing the use case of creating a document via OLE, and then allowing the user to view/edit and ultimately quit from the GUI. Revert "More hacks for quit requests from an OLE Automation client" This reverts commit 05e03911cd1f8a355b6410d3997cffc2c794a1e9. Revert "Veto process exit while an OLE client is connected" This reverts commit 89f883bd90a50587868a57397b6350ed9559a20f. Change-Id: I29a1e42a830815bc8d1ff0056c22d86b8f98cc1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118596 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vbahelper/source/vbahelper/vbaapplicationbase.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index 836781c95d78..382ad3eea6ab 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -471,13 +471,9 @@ void VbaApplicationBase::Quit() { // This is the case of a call from an (OLE) Automation client. - // When an Automation client itself asks the process to quit, it should obey it. - AsyncQuitHandler::instance().SetForceQuit(); - // TODO: Probably we should just close any document windows open by the "application" // (Writer or Calc) the call being handled is for. And only then, if no document windows // are left open, quit the actual LibreOffice application. - Application::PostUserEvent( LINK( &AsyncQuitHandler::instance(), AsyncQuitHandler, OnAsyncQuit ) ); } } -- cgit