This way anyone listening to 'activity' signals can safely re-set the flag to
'false' by calling setMonitorActivity(true) again. Right now this is not
guaranteed as the signal is handled asynchonously (and indeed in my PyQT-based
application the signal would be handled *before* the flag is set to 'true'...)
QTermWidget only add the TerminalDisplay to qt's owner hierarchy for
automatic cleanup. With each new tab a new Session object will be
created and but never deleted (which would cleanup internally the
history files).
This bugfix simple adds to each Session's parent relationship the
corresponding QTermWidget.