Fix, also emit when complete data change and rows are the same (as it could be entirely different dataset)

This commit is contained in:
Klaus Basan
2016-03-12 05:24:40 +01:00
parent 38ca1a40b4
commit a5ad8c245b

View File

@@ -288,10 +288,9 @@ namespace BlackGui
this->endResetModel();
int newSize = this->m_container.size();
if (oldSize != newSize)
{
this->emitRowCountChanged();
}
// I have to update with same size because cannot tell what data are changed
this->emitRowCountChanged();
Q_UNUSED(oldSize);
return newSize;
}