This patch is supposed to be applied on top of D11383, copy of the specific version it's supposed to be applied on top of can be downloaded here
What doesn't work with this patch:
I could not figure out how to spawn a submenu on the correct y coordinates. I would really appreciate some help on how to do that. I.e how do I figure out the y position of the matched QAction?
What this patch fixes:
eventfilter is supposed to return true if it has handled an event and doesn't want others to also handle it, "true value prevents the event from being sent on to other objects". This patch adds those return statements. Doing this fixes several bugs related to the handling of folders, e.g folders no longer trigger when the first letter of their name is typed, folders no longer swallow letters once you leave them etc.
Previously setActiveAction was used to open folders. That this worked appears to be a bug (from 2007!). I have switched to using exec.
Since we can't use setActiveAction to select a folder I have added code to try and find something other than a folder that we can select.