use beginRemovRow when removing nested row.

This commit is contained in:
Marek Kochanowicz 2014-06-24 12:42:49 +02:00
parent 7430e1e1bb
commit befdeb1889

View file

@ -127,10 +127,12 @@ bool CSMWorld::IdTable::removeRows (int row, int count, const QModelIndex& paren
{ {
if (parent.isValid()) if (parent.isValid())
{ {
beginRemoveRows(parent, row, row+count-1);
for (int i = 0; i < count; ++i) for (int i = 0; i < count; ++i)
{ {
mIdCollection->removeNestedRows(parent.row(), parent.column(), row+i); mIdCollection->removeNestedRows(parent.row(), parent.column(), row+i);
} }
endRemoveRows();
return true; return true;
} }