[Libreoffice-commits] core.git: desktop/source
Pranav Kant
pranavk at collabora.co.uk
Thu Nov 23 21:01:20 UTC 2017
desktop/source/lib/init.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 723aae2d5b800be159e423e3a0e8f3cc282b0020
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Nov 24 02:17:23 2017 +0530
Remove redundant call
This call, which sets the DialogCancelMode to fatal is superceded by
another call which resets the DialogCancelMode back to Silent, as
follows.
0 0x00007fffc8c1ece3 in Application::SetDialogCancelMode(Application::DialogCancelMode) (mode=Application::DialogCancelMode::Silent)
1 0x00007fffc8c1f1fc in Application::EnableHeadlessMode(bool) (dialogsAreFatal=false)
2 0x00007fffdd3824af in desktop::Desktop::RegisterServices(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
3 0x00007fffdd361eeb in desktop::Desktop::Main() (this=0x7fffde919950)
4 0x00007fffc8c261f3 in ImplSVMain()
5 0x00007fffc8c2635c in SVMain()
Change-Id: I30efe63932e98309f4d6ac609d09b08378076007
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index b7874dc54b2e..42e78e8bec96 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3586,8 +3586,6 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
// CommandLineArgs):
desktop::Desktop::GetCommandLineArgs().setHeadless();
- Application::EnableHeadlessMode(true);
-
#ifdef IOS
// mpDefInst need to be initialized, which only happens in InitVCL(),
// there might be more elegant ways to get InitVCL() called, but
More information about the Libreoffice-commits
mailing list