[fixed]events "leak" behind CGUIFileOpenDialog

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
squisher
Competition winner
Posts: 91
Joined: Sat May 17, 2008 2:23 am
Contact:

[fixed]events "leak" behind CGUIFileOpenDialog

Post by squisher »

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)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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.
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
Post Reply