Skip to content

Commit

Permalink
Fix flicker on mouse over in download button.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoll committed Feb 11, 2020
1 parent c883cd2 commit de8e216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ def eventFilter(self, obj, event):
# but for reasons not entirely clear, this caused a crash. The
# following odd way of expressing the same conditional doesn't cause a
# crash. Go figure... :-/
if t == QEvent.HoverEnter or t == QEvent.HoverMove and not self.downloading:
if (t == QEvent.HoverEnter or t == QEvent.HoverMove) and not self.downloading:
self.download_button.setIcon(load_icon('download_file_hover.svg'))
elif t == QEvent.HoverLeave and not self.downloading:
self.download_button.setIcon(load_icon('download_file.svg'))
Expand Down

0 comments on commit de8e216

Please sign in to comment.