From de8e216af5605a36519f929bc13d819e3f33a2c0 Mon Sep 17 00:00:00 2001 From: "Nicholas H.Tollervey" Date: Tue, 11 Feb 2020 10:07:56 +0000 Subject: [PATCH] Fix flicker on mouse over in download button. --- securedrop_client/gui/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securedrop_client/gui/widgets.py b/securedrop_client/gui/widgets.py index d60ee32b10..725c6f1aa0 100644 --- a/securedrop_client/gui/widgets.py +++ b/securedrop_client/gui/widgets.py @@ -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'))