account for table filtering when refreshing download counts

auto-update
Zlatin Balevsky 2021-10-22 08:19:28 +01:00
parent 6be0267bb6
commit 09f1ef2be4
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ class MainFrameModel {
if (e.first) {
Set<SharedFile> sfs = core.fileManager.getSharedFiles(e.uploader.infoHash.getRoot())
sfs.stream().map({sharedFileIdx[it]}).
forEach{view.refreshSharedFilesTableRow(it)}
filter({it != null}).
forEach{view.refreshSharedFilesTableRow(it)}
}
}
}