Skip to content

Commit cfe0978

Browse files
committed
TextEditor: Clear the dirty flag in newly opened documents
1 parent a71e411 commit cfe0978

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Applications/TextEditor/TextEditorWidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void TextEditorWidget::open_sesame(const String& path)
262262
return;
263263
}
264264

265+
m_document_dirty = false;
265266
m_editor->set_text(file.read_all());
266267
set_path(FileSystemPath(path));
267268
}

0 commit comments

Comments
 (0)