From a2cb5c862d7a0fcd54b8564da95d530063f388be Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Thu, 12 Aug 2021 17:09:24 +0200 Subject: [PATCH] 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. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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();