[498748] Only invoke a text's callback when really needed
* Do not mark a text field as dirty when rendering the current model
state. When setting up the text field's content to the current state
of the model, we must call Text.setText(), which triggers the
ModifyListeners. But in this context we don't want to mark the widget
as dirty, otherwise leaving the page would trigger the associated
edition tool (hopefully it would be a no-op if the tool is properly
idempotent, but it's still bad for performance).
* Avoid calling the callback associated with the text widget on every
focusLost is the text was not actually changed.
Bug: 498748
Change-Id: I9434e80b8a004e859b7373e728f9b69b4ca7dc86
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
1 file changed