mirror of
https://github.com/RGBCube/serenity
synced 2025-07-15 02:57:38 +00:00
TextEditor: Clear the dirty flag in newly opened documents
This commit is contained in:
parent
a71e411b27
commit
cfe09784a4
1 changed files with 1 additions and 0 deletions
|
@ -262,6 +262,7 @@ void TextEditorWidget::open_sesame(const String& path)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_document_dirty = false;
|
||||||
m_editor->set_text(file.read_all());
|
m_editor->set_text(file.read_all());
|
||||||
set_path(FileSystemPath(path));
|
set_path(FileSystemPath(path));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue