Bug 180756 - Editing the toolbar deletes everything from the menu inserted with KXMLGUIClient::plugActionList()
Summary: Editing the toolbar deletes everything from the menu inserted with KXMLGUICli...
Status: RESOLVED DUPLICATE of bug 64754
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: 4.1
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-15 01:52 UTC by Friedrich W. H. Kossebau
Modified: 2013-07-08 03:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***