mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
HexEditor: Only mark window as modified when document is actually dirty
This commit is contained in:
parent
e44ccddba3
commit
24f729d0ef
5 changed files with 37 additions and 10 deletions
|
@ -79,8 +79,8 @@ HexEditorWidget::HexEditorWidget()
|
|||
m_selecting_from_inspector = false;
|
||||
};
|
||||
|
||||
m_editor->on_change = [this] {
|
||||
window()->set_modified(true);
|
||||
m_editor->on_change = [this](bool is_document_dirty) {
|
||||
window()->set_modified(is_document_dirty);
|
||||
};
|
||||
|
||||
m_search_results->set_activates_on_selection(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue