From 72e57561a1ba4e48fa0118ac44dfd5611e5da584 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 May 2020 21:50:13 +0200 Subject: [PATCH] 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. :^) --- Applications/PaintBrush/ToolboxWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/PaintBrush/ToolboxWidget.cpp b/Applications/PaintBrush/ToolboxWidget.cpp index 5eca0510ec..28a2a1e24e 100644 --- a/Applications/PaintBrush/ToolboxWidget.cpp +++ b/Applications/PaintBrush/ToolboxWidget.cpp @@ -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); }