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:
parent
410cdba5a9
commit
72e57561a1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue