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:
parent
ecf41e13ad
commit
ad62e433f0
3 changed files with 9 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue