Skip to content

Commit c626586

Browse files
committed
Ensure the collection count updates if the model changes.
1 parent c66502d commit c626586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

collection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ void Collection::setModel(JsonListModel *model)
6262
setSourceModel(model);
6363
updateModel();
6464
connect(model, SIGNAL(rolesChanged()), this, SLOT(rolesChanged()));
65+
connect(model, SIGNAL(countChanged(int)), this, SLOT(emitCountChanged()));
6566

6667
emit modelChanged(model);
6768
}

0 commit comments

Comments
 (0)