Skip to content

Commit

Permalink
Merge pull request #3940 from devos50/fix_downloads_crash
Browse files Browse the repository at this point in the history
Fixed crash when filtering downloads
  • Loading branch information
devos50 committed Oct 4, 2018
2 parents 7fc18d9 + 49c334a commit 9cfc6a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TriblerGUI/widgets/downloadspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def on_received_downloads(self, downloads):
def update_download_visibility(self):
for i in range(self.window().downloads_list.topLevelItemCount()):
item = self.window().downloads_list.topLevelItem(i)
if not isinstance(item, DownloadWidgetItem):
continue

filter_match = self.window().downloads_filter_input.text().lower() in item.download_info["name"].lower()
is_creditmining = item.download_info["credit_mining"]
if self.filter == DOWNLOADS_FILTER_CREDITMINING:
Expand Down

0 comments on commit 9cfc6a6

Please sign in to comment.