Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
98b25674
Commit
98b25674
authored
Jul 05, 2011
by
Dominik Haumann
Browse files
load shortcuts if the PluginView inherits from KXMLGuiClient
BUG: 277054
parent
01b01daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/app/katepluginmanager.cpp
View file @
98b25674
...
...
@@ -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"
);
c
->
actionCollection
()
->
readSettings
();
}
win
->
pluginViews
().
insert
(
item
->
plugin
,
view
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment