Bug 78969 - Special button is 'Terminal Sessions' is not automatically updated
Summary: Special button is 'Terminal Sessions' is not automatically updated
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.3.1
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-03 13:26 UTC by Ernst de Haan
Modified: 2004-12-26 22:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to add a 'Relead Sessions' (784 bytes, patch)
2004-12-25 01:16 UTC, Kurt Hindenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst de Haan 2004-04-03 13:26:09 UTC
Version:           1.3.1 (using KDE 3.2.1, compiled sources)
Compiler:          gcc version 2.95.4 20020320 [FreeBSD]
OS:          FreeBSD (i386) release 4.9-STABLE

When I add a new session in Konsole, then the Special Button 'Terminal Sessions' (in Kicker) is not updated, so I don't see the new type of session in there...

To reproduce:
1) Add the special button in your Kicker by right clicking on the Panel menu and then using Panel Menu -> Add -> Special Button -> Terminal Sessions
2) Add a new session using Settings -> Configure Konsole -> Session
3) Click on 'Session' in the menu bar of Konsole and notice the new session type
4) Click on the 'Terminal Sessions' button in the Kicker bar

Expected behaviour:
* The new session type is visible

Actual behaviour:
* It's not
Comment 1 Stephan Binner 2004-04-30 20:09:33 UTC
Work-around (without removing/readding panel button): Run "dcop kicker Panel restart" in shell or mini-CLI.
Comment 2 Kurt Hindenburg 2004-12-25 01:16:01 UTC
Created attachment 8806 [details]
Patch to add a 'Relead Sessions'

This adds a 'Reload Sessions' at the bottom of the menu.

The dcop call now seems to be:
% dcop kicker kicker restart
Comment 3 Kurt Hindenburg 2004-12-25 02:14:40 UTC
Index: konsole_mnu.cpp
===================================================================
RCS file: /home/kde/kdebase/kicker/menuext/konsole/konsole_mnu.cpp,v
retrieving revision 1.10
diff -u -p -r1.10 konsole_mnu.cpp
--- konsole_mnu.cpp     27 Nov 2004 12:22:13 -0000      1.10
+++ konsole_mnu.cpp     25 Dec 2004 01:13:01 -0000
@@ -163,6 +163,10 @@ void KonsoleMenu::initialize()
         }
         closedir(dir);
     }
+
+    insertSeparator();
+    insertItem(SmallIconSet("reload"),
+               i18n("Reload Sessions"), this, SLOT(reinitialize()));
 }

 void KonsoleMenu::slotExec(int id)
Comment 4 Kurt Hindenburg 2004-12-26 22:37:30 UTC
CVS commit by hindenburg: 


Add a 'Reload Sessions' to the menu.  I don't see how to automate this
so we'll give the user a way.

BUG: 78969


  M +4 -0      konsole_mnu.cpp   1.11


--- kdebase/kicker/menuext/konsole/konsole_mnu.cpp  #1.10:1.11
@@ -164,4 +164,8 @@ void KonsoleMenu::initialize()
         closedir(dir);
     }
+
+    insertSeparator();
+    insertItem(SmallIconSet("reload"),
+               i18n("Reload Sessions"), this, SLOT(reinitialize()));
 }