Work around problem where copying text from a field sometimes made it think that the database has bees modified. This seems to be a bug in the Qt5 version of QTextEdit which sometimes signals textChanged() when it shouldn't. The workaround is to check whether the text really has changed.