Fix tab title syncing between multiple views of the same session.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=665823
This commit is contained in:
Robert Knight
2007-05-18 04:20:57 +00:00
parent 73df051eb6
commit 983271c55c
4 changed files with 60 additions and 34 deletions

View File

@@ -205,7 +205,7 @@ void SessionManager::sessionTerminated(QObject* sessionObject)
{
Session* session = qobject_cast<Session*>(sessionObject);
qDebug() << "Session finished: " << session->title();
qDebug() << "Session finished: " << session->title(Session::NameRole);
Q_ASSERT( session );
@@ -317,7 +317,7 @@ void SessionManager::applyProfile(Session* session, const Profile* info , bool m
// Basic session settings
if ( !modifiedPropertiesOnly || info->isPropertySet(Profile::Name) )
session->setTitle(info->name());
session->setTitle(Session::NameRole,info->name());
if ( !modifiedPropertiesOnly || info->isPropertySet(Profile::Command) )
session->setProgram(info->command());