diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-09 12:24:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-09 13:49:56 +0000 |
commit | 9ed4ad81adbcab21bd06c9d531921ab0e36dad3f (patch) | |
tree | 8b27cf7ef6886281db9a58a0d6dc53d2f13cdd03 /desktop | |
parent | 3782235a0b5f142fc7f5a3007078a2cad1ff5539 (diff) |
afl-eventtesting: don't imply invisible when headless for event testing
Change-Id: I5ecf90a927b2ec4aeb2c0586a5da2f814c9062dd
Reviewed-on: https://gerrit.libreoffice.org/19275
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/cmdlineargs.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 ); |