Bug 180756

Summary: Editing the toolbar deletes everything from the menu inserted with KXMLGUIClient::plugActionList()
Product: [Frameworks and Libraries] kdelibs Reporter: Friedrich W. H. Kossebau <kossebau>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: faure
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Friedrich W. H. Kossebau 2009-01-15 01:52:32 UTC
Version:            (using Devel)
Installed from:    Compiled sources

While the apidox for KXMLGUIClient::plugActionList() explicitly says "You should not call createGUI() after calling this function. In fact, that would remove the newly added actionlists again..." this is just what happens if the toolbar gets edited and the changes saved. As a result all dynamically added menu entries are gone.
Comment 1 David Faure 2010-10-19 13:50:22 UTC
The solution to this problem is actually documented:
you should connect to the newToolBarConfig() signal and plug the action lists again in the slot; or do like KXmlGuiWindow::saveNewToolbarConfig() (which is the standard slot connected to that signal) and use removeClient+addClient again.

In fact, maybe your problem is already fixed? The fix was r803933 | dfaure | 2008-05-04, but maybe you were not using trunk when you reported this?
Comment 2 Christoph Feck 2013-07-08 03:27:27 UTC

*** This bug has been marked as a duplicate of bug 64754 ***