Set session title to profile name when created. Rename tab dialog changes the tab title format rather than the session's title itself.

svn path=/branches/work/konsole-split-view/; revision=661587
This commit is contained in:
Robert Knight
2007-05-06 00:58:27 +00:00
parent 63bc8dcf3d
commit 0f9cdfe2db
2 changed files with 9 additions and 4 deletions

View File

@@ -623,6 +623,9 @@ void SessionManager::applyProfile(Session* session, const Profile* info , bool m
session->setType( _types.key((Profile*)info) );
// Basic session settings
if ( !modifiedPropertiesOnly || info->isPropertySet(Profile::Name) )
session->setTitle(info->name());
if ( !modifiedPropertiesOnly || info->isPropertySet(Profile::Command) )
session->setProgram(info->command());