summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorMustafa Quraish <mustafaq9@gmail.com>2022-01-04 20:24:14 -0500
committerAndreas Kling <kling@serenityos.org>2022-01-05 12:08:20 +0100
commitfc5c32775186524638977a2b88cecf77ed5a8856 (patch)
tree35942a47ae7c271cfd63677b7ac9d0d9c7990cfe /Userland/Applications
parent8c4579bced8cad0d368432239264526917ed7e42 (diff)
downloadserenity-fc5c32775186524638977a2b88cecf77ed5a8856.zip
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.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PixelPaint/MainWidget.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}