Skip to content

Commit

Permalink
Fixed context menus not working in the editor (fixes #2183)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 00edff3 commit f71354f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editor/controller/editor_controller.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit f71354f

Please sign in to comment.