Skip to content

Commit

Permalink
Fix star hover state to match Erik's initial description of the behav…
Browse files Browse the repository at this point in the history
…iour needed.
  • Loading branch information
ntoll authored and Allie Crevier committed Mar 25, 2020
1 parent ed92b21 commit a003c06
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 @@ -1351,7 +1351,7 @@ def eventFilter(self, obj, event):
t = event.type()
if t == QEvent.HoverEnter:
self.setIcon(load_icon('star_hover.svg'))
elif t == QEvent.HoverLeave:
elif t == QEvent.HoverLeave or t == QEvent.MouseButtonPress:
self.set_icon(on='star_on.svg', off='star_off.svg')

return QObject.event(obj, event)
Expand Down

0 comments on commit a003c06

Please sign in to comment.