From a5ad8c245ba3b7b01ea398c4e63762098ed512fb Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 12 Mar 2016 05:24:40 +0100 Subject: [PATCH] Fix, also emit when complete data change and rows are the same (as it could be entirely different dataset) --- src/blackgui/models/listmodelbase.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/blackgui/models/listmodelbase.cpp b/src/blackgui/models/listmodelbase.cpp index 510d20115..ed2267952 100644 --- a/src/blackgui/models/listmodelbase.cpp +++ b/src/blackgui/models/listmodelbase.cpp @@ -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; }