mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-12 00:40:23 +00:00
use beginRemovRow when removing nested row.
This commit is contained in:
parent
7430e1e1bb
commit
befdeb1889
@ -127,10 +127,12 @@ bool CSMWorld::IdTable::removeRows (int row, int count, const QModelIndex& paren
|
||||
{
|
||||
if (parent.isValid())
|
||||
{
|
||||
beginRemoveRows(parent, row, row+count-1);
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
mIdCollection->removeNestedRows(parent.row(), parent.column(), row+i);
|
||||
}
|
||||
endRemoveRows();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user