From 37c66e33bddb379caefb87c6afd8e959de491c5e Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 6 May 2022 11:47:57 -0400 Subject: [PATCH] fix(StatusBaseInput): fix dirty being set when the text didn't change --- ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml index e1c32f1d88..60e805d92b 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml @@ -384,6 +384,10 @@ Item { onCursorRectangleChanged: flick.ensureVisible(cursorRectangle) onActiveFocusChanged: if (root.pristine) root.pristine = false onTextChanged: { + if (previousText === text) { + // Not sure why, but the textChanged event was triggered even if it didn't really + return + } root.dirty = true if (root.maximumLength > 0) { if (text.length > root.maximumLength) {