From c8114347dc5788327367fab2c65e0d50cd880f13 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 24 Sep 2021 01:55:30 +0200 Subject: [PATCH] patterns: Fixed project only being marked dirty when evaluating --- source/views/view_pattern_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/views/view_pattern_editor.cpp b/source/views/view_pattern_editor.cpp index e22ee5989..83395cea9 100644 --- a/source/views/view_pattern_editor.cpp +++ b/source/views/view_pattern_editor.cpp @@ -252,14 +252,14 @@ namespace hex { } if (this->m_textEditor.IsTextChanged()) { + ProjectFile::markDirty(); + if (this->m_runAutomatically) this->m_hasUnevaluatedChanges = true; } if (this->m_hasUnevaluatedChanges && !this->m_evaluatorRunning) { this->m_hasUnevaluatedChanges = false; - ProjectFile::markDirty(); - this->parsePattern(this->m_textEditor.GetText().data()); } }