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.
This commit is contained in:
Mustafa Quraish 2022-01-04 20:24:14 -05:00 committed by Andreas Kling
parent 8c4579bced
commit fc5c327751
Notes: sideshowbarker 2024-07-17 21:37:33 +09:00

View file

@ -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);
}