[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#16321: Patch
From:       Anthony Moulen <ajmoulen () moulen ! org>
Date:       2000-11-30 19:02:32
[Download RAW message or body]

Package: konsole

Hello,
Below is a patch that I would like to submit for konsole.  It should
correct several of the title bugs people have been submitting.  It fixes
the bug with titles set from the console itself, and changes the title
when you change the session title.  This is the first time I am submitting
anything so if the formatting is wrong or I need to do something else
please contact me.  Thanks:

--- konsole.C.orig      Thu Nov 30 13:55:32 2000
+++ konsole.C   Thu Nov 30 13:56:30 2000
@@ -911,6 +911,8 @@ void Konsole::activateSession(TESession
        rootxpm->repaint(true); // this is a must, otherwise you loose the
bg.
     }
   }
+  if (te->currentSession)
+    te->currentSession->setTitle(title);
   te->currentSession = se;
   if (s->fontNo() != n_font)
       setFont(s->fontNo());
@@ -1157,6 +1159,11 @@ void Konsole::slotRenameSession() {
   QString name = ra->text();
   KLineEditDlg dlg(i18n("Session name"),name, this);
   if (dlg.exec()) {
+    se->setTitle(dlg.text());
+    if (se == te->currentSession){
+      title = dlg.text();
+      setHeader();
+    }
     ra->setText(dlg.text());
     ra->setIcon("openterm"); // I don't know why it is needed here
     toolBar()->updateRects();                                         

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic