From 7919b4368e78929e0bf7682b277fa396e63b9124 Mon Sep 17 00:00:00 2001 From: Lennon Donaghy Date: Wed, 29 Jun 2022 16:26:02 +0100 Subject: [PATCH] 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. --- Userland/Applications/PixelPaint/ImageEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();