Maybe move this check into the sql statement, now we're not getting the self.max_torrent nr of items in this control.