HexEditor: Change name for unsaved files to 'Untitled'

This commit is contained in:
Gunnar Beutner 2021-06-23 09:20:23 +02:00 committed by Andreas Kling
parent b246221eac
commit 7a87e920f2

View file

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