I'm not sure where the proper place is to report this:
When a window is added to a tab control (addTab), the window subscribes to EventTextChanged, with a member function of the tab control as the handler. When it is removed from the tab control (removeTab), this event handler is not removed from the window.
This prevents renaming the window once it has been removed from a tab. It could also cause a crash if the tab has been deleted.
The simplest solution I see is if the tab control keeps a mapping of window pointers to Event::Connections and uses this to disconnect the handler when removing a tab.
TabControl: bug in removeTab
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Sounds like a good catch to me, thanks for reporting
It's in Mantis: http://www.cegui.org.uk/mantis/view.php?id=192
It's in Mantis: http://www.cegui.org.uk/mantis/view.php?id=192
Check out my released snake game using Cegui!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 5 guests