diff --git a/src/Session.cpp b/src/Session.cpp index d0c01f1a..d6377ca4 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -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; diff --git a/src/Session.h b/src/Session.h index f48f9f05..76a098b8 100644 --- a/src/Session.h +++ b/src/Session.h @@ -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();