PixelPaint: Clear selection when opening a new image

This commit is contained in:
Andreas Kling 2021-06-15 11:50:02 +02:00
parent 91100f2f94
commit 2052796947
Notes: sideshowbarker 2024-07-18 12:13:50 +09:00

View file

@ -36,6 +36,7 @@ void ImageEditor::set_image(RefPtr<Image> image)
if (m_image)
m_image->remove_client(*this);
m_selection.clear();
m_image = move(image);
m_active_layer = nullptr;
m_undo_stack = make<GUI::UndoStack>();