Fixed issue with wrong value of checkDirty after widget modifications.
Tests were written.
Changelog entry.
Merge branch 't/11753'