From 9e651314520776ee7d8597680fb923e0db3e4284 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 26 Oct 2024 14:00:57 +0200 Subject: [PATCH] editor: Avoid showing an error dialog when pressing Ctrl+S --- gui/apps/editor/EditorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/apps/editor/EditorWidget.cpp b/gui/apps/editor/EditorWidget.cpp index 0276861c..ec76e56b 100644 --- a/gui/apps/editor/EditorWidget.cpp +++ b/gui/apps/editor/EditorWidget.cpp @@ -157,7 +157,7 @@ Result EditorWidget::save_file() if (m_path.is_empty()) { TRY(save_file_as()); - return err(ENOENT); + return {}; } auto file = TRY(os::File::open_or_create(m_path.view(), os::File::WriteOnly));