Hey Stefan, Op 27 april 2012 16:04 heeft Stefan Ruppert <[email protected]> het volgende geschreven: >> When you get the assert, could you get a complete stack trace to see >> how sourceRowsRemoved() is part of it ? > > As you can see here sourceRowsRemoved() is involved: > > #9 0x00002b977af09472 in Wt::WAbstractProxyModel::shiftModelIndexes #10 > 0x00002b977b05b46b in Wt::WSortFilterProxyModel::sourceRowsRemoved > > void > WAbstractProxyModel::shiftModelIndexes(const WModelIndex& sourceParent, > int start, int count, > ItemMap& items) > { > ... > for (unsigned i = 0; i < erased.size(); ++i) { > items.erase(erased[i]->sourceIndex_); > // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This line is the problem > delete erased[i]; > } > ... > }
Ah, yes, because of how the topological sorting works. Perhaps everything in sourceRowsRemoved() should be moved to after sourceRowsAboutToBeRemoved() ? I'ld be interested if that solves it for you (instead of your other change) ? Regards, koen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
