[rkward/work/kateintegration] rkward: Add actions to UI

Thomas Friedrichsmeier null at kde.org
Mon Jan 13 10:37:33 GMT 2020

Git commit f3a35e6ce510f74a98c90dbf551cae42237bbda8 by Thomas Friedrichsmeier.
Committed on 13/01/2020 at 10:37.
Pushed by tfry into branch 'work/kateintegration'.

Add actions to UI

M  +4    -0    rkward/rkward.cpp


diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index e95d321f..58db192e 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -159,6 +159,10 @@ RKWardMainWindow::RKWardMainWindow () : KParts::MainWindow ((QWidget *)0, (Qt::W
 	katePluginIntegration ()->loadPlugin ("katesearchplugin");
 	katePluginIntegration ()->loadPlugin ("kateprojectplugin");
 	katePluginIntegration ()->loadPlugin ("katesnippetsplugin");
+	// This is pretty silly, but while loading plugins the katePluginIntegration-client may gain new actions and thus needs
+	// to be reloaded. We cannot - currently, KF5.65 - delay loading it, because plugins rely on it having a GUI factory.
+	factory()->removeClient (katePluginIntegration ()->mainWindow ());
+	factory()->addClient (katePluginIntegration ()->mainWindow ());
 	RKXMLGUISyncer::self ()->watchXMLGUIClientUIrc (this);
 	// replicate File->import and export menus into the Open/Save toolbar button menus

More information about the rkward-tracker mailing list