summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor/MainWidget.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-05-10 17:00:55 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-13 12:53:49 +0200
commitc7eee162927285d228c96e8b6e1814d6ca7815ae (patch)
tree8bb06cac16a5ed58d63505ed1bb39996be885f75 /Userland/Applications/FontEditor/MainWidget.cpp
parenta0f160bfc48750c3cf2d7c3a23753f3a7f690a2d (diff)
downloadserenity-c7eee162927285d228c96e8b6e1814d6ca7815ae.zip
FontEditor: Use resultant FSAC filename when Saving-as
Fixes desync between file and title.
Diffstat (limited to 'Userland/Applications/FontEditor/MainWidget.cpp')
-rw-r--r--Userland/Applications/FontEditor/MainWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FontEditor/MainWidget.cpp b/Userland/Applications/FontEditor/MainWidget.cpp
index b73e6ecf78..deb7b4e133 100644
--- a/Userland/Applications/FontEditor/MainWidget.cpp
+++ b/Userland/Applications/FontEditor/MainWidget.cpp
@@ -158,8 +158,8 @@ ErrorOr<void> MainWidget::create_actions()
if (response.is_error())
return;
- if (auto result = save_file(lexical_path.string(), response.value().release_stream()); result.is_error())
- show_error(result.release_error(), "Saving"sv, lexical_path.basename());
+ if (auto result = save_file(response.value().filename(), response.value().release_stream()); result.is_error())
+ show_error(result.release_error(), "Saving"sv, response.value().filename());
});
m_cut_action = GUI::CommonActions::make_cut_action([this](auto&) {