diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/ImageEditor.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index e4212781a4..8de57a6fb9 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -521,8 +521,10 @@ void ImageEditor::set_active_tool(Tool* tool) return; } - if (m_active_tool) + if (m_active_tool) { + m_active_tool->on_tool_deactivation(); m_active_tool->clear(); + } m_active_tool = tool; |