Version: (using Devel) Installed from: Compiled sources 1-Launch plasma-desktop when you've only 1 screen. 2-Add a new screen extending your desktop. 3-Open to the button in the corner. 4-You'll see that the ToolBoxActions are duplicated. If you repeat this more than once, the number of ToolBoxActions will be exponential. I've tried to fix this, but I don't have enough time to understand how it works :( but I can write here some technical things that may help. Flow inside the code: 1-When a new screen is added, checkScreens-->checkScreen is called. 2-checkScreen have a few conditionals, which emit containmentAdded signal whatever the containment already exists or not. 3-Then, PlasmaApp::containmentAdded is called because of the signal, and this function add the ToolBoxActions. The error: If the containment already exists, and already have actions, they will be duplicated. I tried to create a new signal "existingContainmentAdded" but it produce some odd behaviors, so I stop my research here. Thanks!
Created attachment 35549 [details] Patch for plasma (app), that takes care if a containment already exists
Created attachment 35550 [details] Patch for kdelibs plasma, that add the signal existingContainmentAdded
I've made a patch for this bug, The patches might be wrong but at least they show what's the problem, and how I workaround it.
You might consider sending your patch to http://reviewboard.kde.org/dashboard/ because there it will be noted sooner by the important people
I just don't want to bother in more than one place at the same time. I'll put it in reviewboard too. Thanks!
whats the status of this bug? has it been fixed?
No, it hasn't, I'll try to contact plasma developers now that they're in meeting maybe they'll have 1min to take a look.
SVN commit 1016829 by aseigo: prevent duplicate actions in the toolbox BUG:200981 M +8 -0 toolbox.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1016829
SVN commit 1016830 by aseigo: prevent duplicate actions in the toolbox CCBUG:200981 M +8 -0 toolbox.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1016830