PaintBrush: Select tool button on context menu event

This means that (for example) if you change the line width of the line
tool, you now switch to the line tool, instead of sticking with the
currently "checked" tool.
This commit is contained in:
Shannon Booth 2020-01-02 20:30:16 +13:00 committed by Andreas Kling
parent 0ac95ec510
commit fe67ba032d
Notes: sideshowbarker 2024-07-19 10:25:28 +09:00

View File

@ -27,6 +27,7 @@ public:
virtual void context_menu_event(GContextMenuEvent& event) override
{
set_checked(true);
m_tool->on_contextmenu(event);
}