diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-05-25 21:06:43 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-05-26 11:24:53 +0000 |
commit | e15fc26e9fdbff141890a3e2e8dc4ef935d022a0 (patch) | |
tree | e905dfc7c13c58f22e92113340f8a274fdf3917d /doc/src/images | |
parent | 8050f1c287490ec6130e85e83beb55dccab0294d (diff) |
QSortFilterProxyModel: don't assert when old model gets destroyed
When a new model was set with setSourceModel() and the mapping was
built up, the destruction of the old model caused a reset in the
QSortFilterProxyModel which lead to an empty view or an assertion.
Now we properly disconnect the old model again and also clean up the old
mapping/persistent indexes when a new source model is set.
Task-number: QTBUG-44962
Task-number: QTBUG-67948
Task-number: QTBUG-68427
Change-Id: I2e0612899c210bde3ac0cfa59aefd78269deee5b
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'doc/src/images')
0 files changed, 0 insertions, 0 deletions