diff options
author | Lennon Donaghy <donaghylennon@gmail.com> | 2022-06-29 16:26:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-06-30 11:54:29 +0200 |
commit | 7919b4368e78929e0bf7682b277fa396e63b9124 (patch) | |
tree | f4d90b4f22871cb96b06bc6df40e71e9af4b6164 /Userland | |
parent | 307d113594dd7baa6f08ca4b58bf9f181f71fc08 (diff) | |
download | serenity-7919b4368e78929e0bf7682b277fa396e63b9124.zip |
PixelPaint: Use image title as default filename for "save as"
When creating a new image, a title can be entered. This title was not
used when saving the file however, so naming it was pointless, as the
title used would be whatever was entered during the first save.
This commit makes it so that the default text in the "save as" dialogue
is whatever was entered previously when the image was created.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index a6daa02075..684d1839b7 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -597,7 +597,7 @@ void ImageEditor::save_project() void ImageEditor::save_project_as() { - auto response = FileSystemAccessClient::Client::the().try_save_file(window(), "untitled", "pp"); + auto response = FileSystemAccessClient::Client::the().try_save_file(window(), m_title, "pp"); if (response.is_error()) return; auto file = response.value(); |