Commit abe6d62d authored by Dominik Haumann's avatar Dominik Haumann
Browse files

load shortcuts if the PluginView inherits from KXMLGuiClient

BUG: 277054
parent cd4f1c3c
......@@ -28,7 +28,7 @@
#include <KConfig>
//Added by qt3to4:
#include <kactioncollection.h>
#include <KServiceTypeTrader>
#include <KConfigGroup>
#include <kdebug.h>
......@@ -202,8 +202,12 @@ void KatePluginManager::enablePluginGUI (KatePluginInfo *item, KateMainWindow *w
// lookup if there is already a view for it..
if (!win->pluginViews().contains(item->plugin))
// create the view
// create the view + try to correctly load shortcuts, if it's a GUI Client
Kate::PluginView *view = item->plugin->createView(win->mainWindow());
if (KXMLGUIClient* c = dynamic_cast<KXMLGUIClient*>(view)) {
c->actionCollection()->setConfigGroup( "Shortcuts" );
win->pluginViews().insert (item->plugin, view);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment