From 9ed4ad81adbcab21bd06c9d531921ab0e36dad3f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 9 Oct 2015 12:24:03 +0100 Subject: afl-eventtesting: don't imply invisible when headless for event testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5ecf90a927b2ec4aeb2c0586a5da2f814c9062dd Reviewed-on: https://gerrit.libreoffice.org/19275 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- desktop/source/app/cmdlineargs.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/cmdlineargs.hxx b/desktop/source/app/cmdlineargs.hxx index c0b1f35ceaeb..e0c3726f675a 100644 --- a/desktop/source/app/cmdlineargs.hxx +++ b/desktop/source/app/cmdlineargs.hxx @@ -57,7 +57,10 @@ class CommandLineArgs: private boost::noncopyable // Access to bool parameters bool IsMinimized() const { return m_minimized;} - bool IsInvisible() const { return m_invisible;} + bool IsInvisible() const + { + return m_invisible || (m_headless && !m_eventtesting); + } bool IsNoRestore() const { return m_norestore;} bool IsNoDefault() const { return m_nodefault;} bool IsHeadless() const { return m_headless;} @@ -112,7 +115,7 @@ class CommandLineArgs: private boost::noncopyable // Special analyzed states (does not match directly to a command line parameter!) bool IsEmpty() const { return m_bEmpty;} - void setHeadless() { m_headless = true; m_invisible = true; } + void setHeadless() { m_headless = true; } private: void ParseCommandLine_Impl( Supplier& supplier ); -- cgit