mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-19 06:39:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/72e57561a1b
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…
Reference in a new issue