forked from teamnwah/openmw-tes3coop
use beginRemovRow when removing nested row.
This commit is contained in:
parent
7430e1e1bb
commit
befdeb1889
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue