HexEditor: Only mark window as modified when document is actually dirty

This commit is contained in:
kamp 2022-09-05 23:49:35 +02:00 committed by Linus Groh
commit 24f729d0ef
Notes: sideshowbarker 2024-07-17 04:55:19 +09:00
5 changed files with 37 additions and 10 deletions

View file

@ -518,7 +518,7 @@ void HexEditor::update_status()
void HexEditor::did_change()
{
if (on_change)
on_change();
on_change(m_document->is_dirty());
}
void HexEditor::paint_event(GUI::PaintEvent& event)