KXmlGuiWindow documentation tells us to not pass the 'Create' flag:
* NOTE: when using KParts::MainWindow, remove this flag from * the * setupGUI call, since you'll be using createGUI(part) instead. * @code * setupGUI(ToolBar | Keys | StatusBar | Save); * @endcode
This in fact fixes a real problem. Before this patch duplicated standard
actions (e.g. the 'help' action is created twice internally).
There's a problem, though, this changes messes up KDevelop's menu bar:
This is how it looks like normally:
I need this patch in order to fix another issue (I'd like unbind the default shortcut for the F1 key).