diff options
-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 ); |