1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:57:34 +00:00

PixelPaint: Don't crash when cancel is pressed when saving a file

Previously, we were attempting to add an empty string to the most
recently open files list when no file was saved.
This commit is contained in:
Tim Ledbetter 2024-02-09 05:55:02 +00:00 committed by Jelle Raaijmakers
parent ecf41e13ad
commit ad62e433f0
3 changed files with 9 additions and 2 deletions

View file

@ -90,6 +90,8 @@ public:
Function<void(void)> on_leave;
Function<void(bool modified)> on_modified_change;
Function<void(ByteString const& filename)> on_file_saved;
bool request_close();
void save_project_as();