TextEditor: Clear the dirty flag in newly opened documents

This commit is contained in:
Andreas Kling 2019-08-29 18:54:06 +02:00
parent a71e411b27
commit cfe09784a4
Notes: sideshowbarker 2024-07-19 12:26:24 +09:00

View file

@ -262,6 +262,7 @@ void TextEditorWidget::open_sesame(const String& path)
return;
}
m_document_dirty = false;
m_editor->set_text(file.read_all());
set_path(FileSystemPath(path));
}