Bug #2039 ยป WSortFilterProxyModel-bugfix.patch
src/Wt/WSortFilterProxyModel.C | ||
---|---|---|
WModelIndex parent = mapFromSource(topLeft.parent());
|
||
Item *item = itemFromIndex(parent);
|
||
|
||
bool isNotRootIndex = topLeft.parent().isValid();
|
||
if (item == mappedRootItem_ && isNotRootIndex)
|
||
{
|
||
// index doesn't refer to root item, hence simply invalid/not meant to be displayed
|
||
return;
|
||
}
|
||
for (int row = topLeft.row(); row <= bottomRight.row(); ++row) {
|
||
int oldMappedRow = item->sourceRowMap_[row];
|