Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.6.0
-
None
-
qt 4.6.0(and rc1)/ vs 2005
-
9a45e1853374c735dc08bf2e23b9d820900b1ccb
Description
Steps (easy to do in designer):
- add some items into QListWidget
- set dragEnabled to true
- set drag and drop mode to InternalMove
- try to drag the item and drop it into itself ( or into the listwidget)
- sometimes it causes assert.
It's tricky to get the assert, not able to reproduce the problem all the time.
It seems that the assert happens here:
void QAbstractItemModel::endMoveRows()
{
Q_D(QAbstractItemModel);
QAbstractItemModelPrivate::Change insertChange = d->changes.pop();// ASSERT
...
}