summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/data/qnodemodel.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-04-12 08:06:38 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-04-12 08:58:37 (GMT)
commitd32a818ecb2e707e548f2ad7a5222062db7edf32 (patch)
treef98a872885cc503ac32c9a0d31dff3da145c2116 /src/xmlpatterns/data/qnodemodel.cpp
parent690e54dda08496d80526ae64dcb1fb88f533542b (diff)
downloadQt-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