If the model's setData() emits layoutChanged, it invalidates QModelIndexes that this code is working with, so we have to use a persistent model index for 'current' to protect against that. For 'previous', Volker Hilsheimer had the idea of moving code around so we're done with it before calling commitData(). Fixes: QTBUG-127852 Change-Id: Ieb6ebc9603e7a753d78aab11ce81ad87d71f5084 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit cbc5b4fbe12b6c4410bf482cd1caac933c8b63ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%