summaryrefslogtreecommitdiffstats
path: root/examples/webkit/webplugin/csvview.cpp
diff options
context:
space:
mode:
authorAndreas Hartmetz <andreas.hartmetz@kdab.com>2014-08-28 18:23:11 (GMT)
committerAndreas Hartmetz <ahartmetz@gmail.com>2014-09-03 19:35:08 (GMT)
commit8e720177ef18d471c8ffa455750fdcd375d7a8da (patch)
tree203eacfc2a01d9d7eb2d87476cee7a60824fab30 /examples/webkit/webplugin/csvview.cpp
parent997d626173d9aba5b01b35e4d95ad162771ba789 (diff)
downloadQt-8e720177ef18d471c8ffa455750fdcd375d7a8da.zip
Qt-8e720177ef18d471c8ffa455750fdcd375d7a8da.tar.gz
Qt-8e720177ef18d471c8ffa455750fdcd375d7a8da.tar.bz2
Don't call virtual methods after the source model is destroyed.
Calling clear_mapping causes the persistent indexes to be queried, and mapped using map_to_source, so that they can be restored later. That is not the appropriate response to the source model being deleted because there won't be anything to restore. Simply clear the stored mapping information instead so that the source model actually exists when mapToSource is called by the framework. Backport of 722798a359761a1eb635d18547b076615f192508 from qt5/qtbase Change-Id: I9c74f97855046b968dfba7a35134c234b974e63b Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'examples/webkit/webplugin/csvview.cpp')
0 files changed, 0 insertions, 0 deletions