[Konsole-devel] [Bug 101619] Konsole1.5 does not manage tabs with equal titles

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Wed Mar 30 04:53:36 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=101619         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2005-03-30 06:53 -------
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));



More information about the konsole-devel mailing list