Update the title for a tab by taking a snapshot of the terminal process as soon as it starts. Add a signal to Session which is emitted when the process is successfully started.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757282
This commit is contained in:
Robert Knight
2008-01-04 16:30:06 +00:00
parent 6771f6943d
commit a73ac95836
3 changed files with 8 additions and 1 deletions

View File

@@ -128,11 +128,13 @@ SessionController::SessionController(Session* session , TerminalDisplay* view, Q
SLOT(sessionStateChanged(int) ));
// listen to title and icon changes
connect( _session , SIGNAL(titleChanged()) , this , SLOT(sessionTitleChanged()) );
// update the title when the session starts
connect( _session , SIGNAL(started()) , this , SLOT(snapshot()) );
// listen for output changes to set activity flag
connect( _session->emulation() , SIGNAL(outputChanged()) , this ,
SLOT(fireActivity()) );
// listen for flow control status changes
connect( _session , SIGNAL(flowControlEnabledChanged(bool)) , _view ,