mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
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:
parent
8c4579bced
commit
fc5c327751
1 changed files with 1 additions and 0 deletions
|
@ -712,6 +712,7 @@ void MainWidget::open_image_fd(int fd, String const& path)
|
||||||
auto& image = *m_loader.release_image();
|
auto& image = *m_loader.release_image();
|
||||||
auto& editor = create_new_editor(image);
|
auto& editor = create_new_editor(image);
|
||||||
editor.set_path(path);
|
editor.set_path(path);
|
||||||
|
editor.undo_stack().set_current_unmodified();
|
||||||
m_layer_list_widget->set_image(&image);
|
m_layer_list_widget->set_image(&image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue