Hi,
If I double-click a directory on a CGUIFileOpenDialog and there's a listbox behind it, my program will think the listbox behind it was doubleclicked.
To fix this in my own copy of irrlicht (1.6.1), I moved the "return true" from line 216 out a level (between 217 and 218). (in CGUIFileOpenDialog.cpp)
[fixed]events "leak" behind CGUIFileOpenDialog
Strange, usually only the active element should receive mouse-clicks. But thanks for reporting, I'll try to find some time next weekend to fix a bunch of newly found gui-bugs. I'll check if I can reproduce this.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
I could not reproduce the problem, but I suppose you had the listbox in the background as parent (then it would happen).
It's a little undefined so far if Irrlicht should eat those events or not. But I suppose it should at least be consistently the same behavior within one gui-element, so I do return true now there and also in EGET_LISTBOX_CHANGED.
If you want to try the fix, it's in the 1.7 branch in svn.
It's a little undefined so far if Irrlicht should eat those events or not. But I suppose it should at least be consistently the same behavior within one gui-element, so I do return true now there and also in EGET_LISTBOX_CHANGED.
If you want to try the fix, it's in the 1.7 branch in svn.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm