Add accessing method autoClose() for completeness

wilder-portage
Jekyll Wu 14 years ago
parent 2f7608aca9
commit d8647e1b7f
  1. 10
      src/Session.cpp
  2. 7
      src/Session.h

@ -1116,6 +1116,16 @@ void Session::setAddToUtmp(bool add)
_addToUtmp = add;
}
void Session::setAutoClose(bool close)
{
_autoClose = close;
}
bool Session::autoClose() const
{
return _autoClose;
}
void Session::setFlowControlEnabled(bool enabled)
{
_flowControlEnabled = enabled;

@ -286,9 +286,10 @@ public:
* Specifies whether to close the session automatically when the terminal
* process terminates.
*/
void setAutoClose(bool b) {
_autoClose = b;
}
void setAutoClose(bool close);
/** See setAutoClose() */
bool autoClose() const;
/** Returns true if the user has started a program in the session. */
bool isForegroundProcessActive();

Loading…
Cancel
Save