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));