Skip to content

MetaItemModelTest: Fix crash on Qt6

Ilya Pominov requested to merge ipominov/k3b:metaitemmodel into master

Store in QList not the "K3b::Place" itself, but a pointer to it. Passing the address to item of QList by QModelIndex leads to a crash, because in some cases QList can make a deep copy. https://doc.qt.io/qt-6/qlist.html#operator-5b-5d Not reproduced on Qt5 but stable reproduced on Qt6.

Merge request reports