Ticket #18 (closed defect: fixed)
Game crashes if you have the house colour dropdown open when the game starts.
| Reported by: | stephen | Owned by: | stephen |
|---|---|---|---|
| Priority: | major | Milestone: | 013 |
| Component: | client | Version: | |
| Keywords: | Cc: |
Description
Get guichan error "No focushandler set (did you add the widget to the gui?)".
Change History
comment:2 Changed 2 years ago by stephen
This is actually a problem for all the dropdowns (i.e. the quest selection ones as well, not just the house colour dropdown).
When we close the quest selection screen and go into the game, all the gui widgets (including the dropdowns) get destroyed. However if one of the dropdowns is open, it looks like Guichan is still holding a reference to it, somewhere within the gcn::Gui object, even after we have deleted it. This then causes all sorts of problems the next time we call gcn::Gui::logic(), including exceptions and/or access violations.
I have worked around this by completely deleting the gcn::Gui and re-creating it when we go from one screen to another. This seems to get rid of the dangling references, and fix the problem.
