fixed ReportModel::RemoveRows view updates

This commit is contained in:
Marc Zinnschlag 2015-04-26 12:36:05 +02:00
parent 932f1f9fbd
commit 2ef8103cc7

View file

@ -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;
} }