Follow-up Comment #1, bug #15763 (project wesnoth):
I'm trying to get my head around construct_dialog.cpp and dialogs.cpp as of
1.13.1+dev. Past experience tells me that working through UI code tends to be
tricky and confusing but it seems to me in this case that there is some sort
of timing-related bug in the do-loop of dialog::show(). With every iteration
process() attempts to process keyboard presses or mouse-clicks. But for some
reason that I can't work out from what I've read of the code, pressing enter
when the extra 'do you want to delete this save file' dialog is open triggers
both a DELETE_ITEM result (thus deleting the selected save file) and some sort
of button press event that triggers the loading of the next available save
file (if any).
I say it's a timing-related bug because stepping through the code with a
debugger can be enough to 'separate' the two events, making the issue hard to
diagnose.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15763>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs