summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-08-12 17:09:24 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-12 18:54:57 +0200
commita2cb5c862d7a0fcd54b8564da95d530063f388be (patch)
treee3eb18e278272761d1c5b4736302d3f805819442 /Userland/DevTools
parent8516b9532ee6aba42261e6aca9d5ebda8ec82e69 (diff)
downloadserenity-a2cb5c862d7a0fcd54b8564da95d530063f388be.zip
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.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index ea9ac31f99..a06b07cc9f 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -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();