forked from mirror/openmw-tes3mp
fixed ReportModel::RemoveRows view updates
This commit is contained in:
parent
932f1f9fbd
commit
2ef8103cc7
1 changed files with 8 additions and 1 deletions
|
@ -120,8 +120,15 @@ bool CSMTools::ReportModel::removeRows (int row, int count, const QModelIndex& p
|
||||||
if (parent.isValid())
|
if (parent.isValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (count>0)
|
||||||
|
{
|
||||||
|
beginRemoveRows (parent, row, row+count-1);
|
||||||
|
|
||||||
mRows.erase (mRows.begin()+row, mRows.begin()+row+count);
|
mRows.erase (mRows.begin()+row, mRows.begin()+row+count);
|
||||||
|
|
||||||
|
endRemoveRows();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue