diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 14:27:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 14:27:18 +0100 |
commit | b63810cf50648caff9781b693f8c74c16ea6ed8a (patch) | |
tree | 1e52622e805c5d2261db592b87791412dfa57eee /desktop | |
parent | stray fprintf (diff) | |
download | core-b63810cf50648caff9781b693f8c74c16ea6ed8a.tar.gz core-b63810cf50648caff9781b693f8c74c16ea6ed8a.zip |
Headless implies invisible
Change-Id: I97c1becd4a3f31ebb5d984d5efbfef7b9339f6bf
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/cmdlineargs.cxx | 4 | ||||
-rw-r--r-- | desktop/source/app/cmdlineargs.hxx | 2 |
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 ); |