summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-10 14:27:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-10 14:27:18 +0100
commitb63810cf50648caff9781b693f8c74c16ea6ed8a (patch)
tree1e52622e805c5d2261db592b87791412dfa57eee /desktop
parent577db4b16627c6376c50786d6098a2b2eff34350 (diff)
Headless implies invisible
Change-Id: I97c1becd4a3f31ebb5d984d5efbfef7b9339f6bf
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/cmdlineargs.cxx4
-rw-r--r--desktop/source/app/cmdlineargs.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index d3271fd46c30..6f2c1a637e67 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 0ab54e072125..580466f5bf24 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 );