mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 20:48:05 +00:00
Fixed context menus not working in the editor (fixes #2183)
Turns out after moving the menu handling to right-button-up, I didn't add a call to the base method here, which meant the show-context-menu code was never called.
This commit is contained in:
parent
a59965c591
commit
25eb7a69be
@ -1348,8 +1348,11 @@ void editor_controller::right_drag_end(int x, int y, const bool /*browse*/)
|
||||
perform_delete(a);
|
||||
}
|
||||
|
||||
void editor_controller::right_mouse_up(int x, int y, const bool /*browse*/)
|
||||
void editor_controller::right_mouse_up(int x, int y, const bool browse)
|
||||
{
|
||||
// Call base method to handle context menus.
|
||||
mouse_handler_base::right_mouse_up(x, y, browse);
|
||||
|
||||
editor_action* a = get_mouse_action().up_right(*gui_, x, y);
|
||||
perform_delete(a);
|
||||
if (a) set_button_state();
|
||||
|
Loading…
x
Reference in New Issue
Block a user