mirror of
https://github.com/KDE/konsole.git
synced 2026-02-02 03:11:31 -05:00
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:
@@ -127,8 +127,10 @@ void SessionController::snapshot()
|
||||
else
|
||||
title = process->format(_session->tabTitleFormat(Session::LocalTabTitle) ) ;
|
||||
|
||||
if ( !title.isEmpty() )
|
||||
_session->setTitle(title);
|
||||
if ( !title.simplified().isEmpty() )
|
||||
setTitle(title);
|
||||
else
|
||||
setTitle(_session->title());
|
||||
|
||||
if ( snapshot != process )
|
||||
{
|
||||
@@ -493,10 +495,10 @@ void SessionController::renameSession()
|
||||
bool ok = false;
|
||||
const QString& text = KInputDialog::getText( i18n("Rename Tab") ,
|
||||
i18n("Enter new tab text:") ,
|
||||
_session->title() ,
|
||||
_session->tabTitleFormat(Session::LocalTabTitle) ,
|
||||
&ok );
|
||||
if ( ok )
|
||||
_session->setTitle(text);
|
||||
_session->setTabTitleFormat(Session::LocalTabTitle,text);
|
||||
}
|
||||
void SessionController::saveSession()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user