mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
TextEditor: `Fix bug when document is marked dirty on open.
Currently, when `set_text()` is called on GTextDocument a change is triggered and all clients registered get a document_did_set_text call. This in turn causes the TextEditorWidget to mark the document as dirty even on the first open, which makes for a weird experience.
This commit is contained in:
parent
f93c0dc489
commit
8cea5c053d
2 changed files with 10 additions and 1 deletions
|
@ -47,4 +47,5 @@ private:
|
|||
RefPtr<GWidget> m_find_widget;
|
||||
|
||||
bool m_document_dirty { false };
|
||||
bool m_document_opening { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue