[Libreoffice-commits] core.git: desktop/source
Caolán McNamara
caolanm at redhat.com
Fri Oct 9 06:50:17 PDT 2015
desktop/source/app/cmdlineargs.hxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 9ed4ad81adbcab21bd06c9d531921ab0e36dad3f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 9 12:24:03 2015 +0100
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 at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/desktop/source/app/cmdlineargs.hxx b/desktop/source/app/cmdlineargs.hxx
index c0b1f35..e0c3726 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 );
More information about the Libreoffice-commits
mailing list