mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 01:06:04 +00:00
Ensure that focus handling stays the same as before the fix
This commit is contained in:
parent
501eb60743
commit
9550c3636b
@ -59,7 +59,7 @@ bool context::remove_handler(sdl_handler* ptr)
|
||||
// so look there first, otherwise do a complete search.
|
||||
if(handlers.back() == ptr) {
|
||||
if(focused_handler != handlers.end() && *focused_handler == ptr) {
|
||||
focused_handler != handlers.begin() ? --focused_handler : ++focused_handler;
|
||||
focused_handler = handlers.end();
|
||||
}
|
||||
|
||||
handlers.pop_back();
|
||||
|
Loading…
x
Reference in New Issue
Block a user