1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:27:43 +00:00

PaintBrush: Activate tool properly when right-clicking tool button

If we don't go via the action, the tool button becomes checked which
can bypass the exclusivity mechanism. That should probably also be
fixed but it's far outside the scope of where I am right now. :^)
This commit is contained in:
Andreas Kling 2020-05-13 21:50:13 +02:00
parent 410cdba5a9
commit 72e57561a1

View file

@ -74,7 +74,7 @@ public:
virtual void context_menu_event(GUI::ContextMenuEvent& event) override
{
set_checked(true);
m_action->activate();
m_tool->on_contextmenu(event);
}