diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-04-12 08:06:38 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-04-12 08:58:37 (GMT) |
commit | d32a818ecb2e707e548f2ad7a5222062db7edf32 (patch) | |
tree | f98a872885cc503ac32c9a0d31dff3da145c2116 /src/xmlpatterns/data/qnodemodel.cpp | |
parent | 690e54dda08496d80526ae64dcb1fb88f533542b (diff) | |
download | Qt-d32a818ecb2e707e548f2ad7a5222062db7edf32.zip Qt-d32a818ecb2e707e548f2ad7a5222062db7edf32.tar.gz Qt-d32a818ecb2e707e548f2ad7a5222062db7edf32.tar.bz2 |
Fix crash with QTextEdit::textChanged() when deleting a character
QTextEdit::textChanged() will be emitted from a function called from
within QTextCursorPrivate. If the code connected to textChanged()
makes a local copy of the current text cursor and then causes it
to detach, we will crash when returning to QTextCursorPrivate and
trying to access the now-deleted data. To avoid this, we make a local
reference to the current text cursor that gives us a guarantee that
it will be valid throughout the delete-call.
Task-number: QTBUG-9599
Reviewed-by: Gunnar
Diffstat (limited to 'src/xmlpatterns/data/qnodemodel.cpp')
0 files changed, 0 insertions, 0 deletions