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,7 +120,14 @@ bool CSMTools::ReportModel::removeRows (int row, int count, const QModelIndex& p
|
|||
if (parent.isValid())
|
||||
return false;
|
||||
|
||||
mRows.erase (mRows.begin()+row, mRows.begin()+row+count);
|
||||
if (count>0)
|
||||
{
|
||||
beginRemoveRows (parent, row, row+count-1);
|
||||
|
||||
mRows.erase (mRows.begin()+row, mRows.begin()+row+count);
|
||||
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue