mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Fix, also emit when complete data change and rows are the same (as it could be entirely different dataset)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user