fix crashes on model changes
author Rolf Eike Beer
()
committer Rolf Eike Beer
()
commit 751c40508de14dfc4f756ec6e5388d849d63004f
tree 844f3342c14f11186cf6d3a17097b2e142de12ab
parent 109558c512e4b67af94ac6c7983301dde162c13d
fix crashes on model changes

QAbstractItemModel::changePersistentIndex() is heavily underdocumented, so I
probably got it wrong. Use beginResetModel()/endResetModel() to guard "global"
changes in the model instead of layoutAboutToBeChanged()/layoutChanged(). This
should hopefully get rid of all the spurious crashes deep in the Qt model
implementation.

BUG:294097
CCBUG:254090
FIXED-IN:4.8.1
model/kgpgitemmodel.cpp
model/kgpgitemmodel.h