[Libreoffice-commits] core.git: desktop/source
Stephan Bergmann
sbergman at redhat.com
Wed Dec 10 05:27:51 PST 2014
desktop/source/app/cmdlineargs.cxx | 4 +---
desktop/source/app/cmdlineargs.hxx | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
New commits:
commit b63810cf50648caff9781b693f8c74c16ea6ed8a
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Dec 10 14:27:18 2014 +0100
Headless implies invisible
Change-Id: I97c1becd4a3f31ebb5d984d5efbfef7b9339f6bf
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index d3271fd..6f2c1a6 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -186,9 +186,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
}
else if ( oArg == "headless" )
{
- // Headless means also invisibile, so set this parameter to true!
- m_headless = true;
- m_invisible = true;
+ setHeadless();
}
else if ( oArg == "cat" )
{
diff --git a/desktop/source/app/cmdlineargs.hxx b/desktop/source/app/cmdlineargs.hxx
index 0ab54e0..580466f5 100644
--- a/desktop/source/app/cmdlineargs.hxx
+++ b/desktop/source/app/cmdlineargs.hxx
@@ -111,7 +111,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; }
+ void setHeadless() { m_headless = true; m_invisible = true; }
private:
void ParseCommandLine_Impl( Supplier& supplier );
More information about the Libreoffice-commits
mailing list