summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-20 12:19:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-20 21:18:31 +0100
commitb6b8ef2508335604f56325f696f1c1791d892305 (patch)
tree2ae345514b93605670267b84ed22d1f483456801 /desktop
parente9fc41292be2e2f9a29fbb6092e182f6bee9639d (diff)
afl-eventtesting: shutdown cleaner to allow things to deregister
Change-Id: I2dc7c90f1f5a776bb0e6772d2b381116d28dd46f
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/appinit.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index c41880e478b2..f8b09575dcbc 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -98,8 +98,9 @@ void Desktop::RegisterServices(Reference< XComponentContext > const & context)
CommandLineArgs& rCmdLine = GetCommandLineArgs();
// Headless mode for FAT Office, auto cancels any dialogs that popup
- bool bHeadlessMode = rCmdLine.IsHeadless() && !rCmdLine.IsEventTesting();
- if (bHeadlessMode)
+ if (rCmdLine.IsEventTesting())
+ Application::EnableEventTestingMode();
+ else if (rCmdLine.IsHeadless())
Application::EnableHeadlessMode(false);
// read accept string from configuration