Skip to content

Fix QTreeModel calling beginRemoveRows twice

David Faure requested to merge dfaure/qtbase:work/dfaure/6ec3fa28 into kde/5.15

For items that are children of other items, removeRows calls beginRemoveRows directly and then once again inside takeChild() The signal blocker that dates back to the monolitic import from Nokia prevents the model from emitting extra signals but the persistent indexes are corrupted nonetheless.

Fixes: QTBUG-90030 Pick-to: 6.1 6.0 5.15 Change-Id: I5bc4b2598bf13247683b113faeec22471f1f04a4 Reviewed-by: David Faure david.faure@kdab.com (cherry picked from commit 6ec3fa28)

Merge request reports