diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index 6cf46ec832..44805956c0 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -322,7 +322,10 @@ void HexEditorWidget::set_path(const LexicalPath& lexical_path) void HexEditorWidget::update_title() { StringBuilder builder; - builder.append(m_path); + if (m_path.is_empty()) + builder.append("Untitled"); + else + builder.append(m_path); if (m_document_dirty) builder.append(" (*)"); builder.append(" - Hex Editor");