summaryrefslogtreecommitdiffstats
path: root/kicker/menuext
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-04-14 15:20:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-04-14 15:20:21 +0900
commit8acbb0a1b397202883fa362bd73619b4f4603931 (patch)
tree2be9709c10ac240b304280496441231ce1432343 /kicker/menuext
parent9146504fdd78c192f4287aeb0fe9e6587b2edf2b (diff)
downloadtdebase-8acbb0a1b397202883fa362bd73619b4f4603931.tar.gz
tdebase-8acbb0a1b397202883fa362bd73619b4f4603931.zip
kicker's kate session menu extension: keep the popup menu open after
reloading the sessions list. This improve the user experience. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kicker/menuext')
-rw-r--r--kicker/menuext/kate/katesessionmenu.cpp7
-rw-r--r--kicker/menuext/kate/katesessionmenu.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/kicker/menuext/kate/katesessionmenu.cpp b/kicker/menuext/kate/katesessionmenu.cpp
index 711d0968d..c2b3712cc 100644
--- a/kicker/menuext/kate/katesessionmenu.cpp
+++ b/kicker/menuext/kate/katesessionmenu.cpp
@@ -117,7 +117,7 @@ void KateSessionMenu::initialize()
// means for updating, to let the user manually update if he/she added new sessions.
insertSeparator();
- insertItem( SmallIconSet("reload"), i18n("Reload Session List"), this, TQT_SLOT(reinitialize()) );
+ insertItem( SmallIconSet("reload"), i18n("Reload Session List"), this, TQT_SLOT(reloadSessionsList()) );
}
void KateSessionMenu::slotExec( int id )
@@ -170,5 +170,10 @@ void KateSessionMenu::slotExec( int id )
kapp->tdeinitExec("kate", args);
}
+void KateSessionMenu::reloadSessionsList()
+{
+ reinitialize();
+ exec();
+}
// kate: space-indent: on; indent-width 2; replace-tabs on;
diff --git a/kicker/menuext/kate/katesessionmenu.h b/kicker/menuext/kate/katesessionmenu.h
index 3d5519496..2558ad702 100644
--- a/kicker/menuext/kate/katesessionmenu.h
+++ b/kicker/menuext/kate/katesessionmenu.h
@@ -34,6 +34,7 @@ class KateSessionMenu : public KPanelMenu {
protected slots:
virtual void slotExec( int id );
+ void reloadSessionsList();
private:
TQStringList m_sessions;