From fc5c32775186524638977a2b88cecf77ed5a8856 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Tue, 4 Jan 2022 20:24:14 -0500 Subject: [PATCH] PixelPaint: Mark editor as unmodified when opening an image Previously a newly opened (and unedited) project was considered modified, even though there was no need to actually re-save the contents. --- Userland/Applications/PixelPaint/MainWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index 19a03b1f72..a1f9396917 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -712,6 +712,7 @@ void MainWidget::open_image_fd(int fd, String const& path) auto& image = *m_loader.release_image(); auto& editor = create_new_editor(image); editor.set_path(path); + editor.undo_stack().set_current_unmodified(); m_layer_list_widget->set_image(&image); }