diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2023-05-10 17:00:55 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-13 12:53:49 +0200 |
commit | c7eee162927285d228c96e8b6e1814d6ca7815ae (patch) | |
tree | 8bb06cac16a5ed58d63505ed1bb39996be885f75 /Userland/Applications/FontEditor/MainWidget.cpp | |
parent | a0f160bfc48750c3cf2d7c3a23753f3a7f690a2d (diff) | |
download | serenity-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.cpp | 4 |
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&) { |