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
Notes: sideshowbarker 2024-07-19 06:39:51 +09:00

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);
}