HackStudio: Show the 'Save as...' dialog when saving uncreated file

Previously when user wanted to save an uncreated file, the program
would just quietly ignore the save request, without giving any message.
This can be seen when creating a new editor in split view mode.
This commit is contained in:
Karol Kosek 2021-08-12 17:09:24 +02:00 committed by Andreas Kling
parent 8516b9532e
commit a2cb5c862d
Notes: sideshowbarker 2024-07-19 17:19:39 +09:00

View file

@ -601,7 +601,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_save_action()
{
return GUI::CommonActions::make_save_action([&](auto&) {
if (active_file().is_empty())
return;
m_save_as_action->activate();
current_editor_wrapper().save();