Cabana: fix the binaryview is not updated correctly (#26731)

old-commit-hash: 6bea668e35408361fd8efa5bec641d2fe7cf94e8
This commit is contained in:
Dean Lee
2022-12-09 03:54:22 +08:00
committed by GitHub
parent 2d49d819d3
commit 161b2a8902
+1 -1
View File
@@ -202,7 +202,7 @@ void BinaryViewModel::updateState() {
}
}
for (int i = 0; i < row_count; ++i) {
for (int i = 0; i < row_count * column_count; ++i) {
if (i >= prev_items.size() || prev_items[i].val != items[i].val) {
auto idx = index(i / column_count, i % column_count);
emit dataChanged(idx, idx);