[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/konsole/konsole
From: Kurt Hindenburg <kurt.hindenburg () kdemail ! net>
Date: 2005-03-30 3:26:12
Message-ID: 20050330032612.CE1C9484 () office ! kde ! org
[Download RAW message or body]
CVS commit by hindenburg:
Don't alter session title when using --profile or session management.
BUGS: 101619
M +8 -0 konsole.cpp 1.525
M +1 -0 konsole.h 1.204
M +1 -0 main.cpp 1.290
--- kdebase/konsole/konsole/konsole.h #1.203:1.204
@@ -86,4 +86,5 @@ public:
void setSchema(const QString & path);
void setEncoding(int);
+ void setSessionTitle(QString&, TESession* = 0);
void enableFullScripting(bool b);
--- kdebase/konsole/konsole/konsole.cpp #1.524:1.525
@@ -3473,4 +3473,12 @@ void Konsole::attachSession(TESession* s
}
+void Konsole::setSessionTitle( QString& title, TESession* ses )
+{
+ if ( !ses )
+ ses = se;
+ ses->setTitle( title );
+ slotRenameSession( ses, title );
+}
+
void Konsole::renameSession(TESession* ses) {
QString title = ses->Title();
--- kdebase/konsole/konsole/main.cpp #1.289:1.290
@@ -531,4 +531,5 @@ extern "C" int KDE_EXPORT kdemain(int ar
sCwd = sessionconfig->readPathEntry(key);
m->newSession(sPgm, eargs, sTerm, sIcon, sTitle, sCwd);
+ m->setSessionTitle(sTitle); // Use title as is
key = QString("Schema%1").arg(counter);
m->setSchema(sessionconfig->readEntry(key));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic