eric6/WebBrowser/UrlBar/UrlBar.py

changeset 8205
4a0f1f896341
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/WebBrowser/UrlBar/UrlBar.py	Thu Apr 08 17:27:12 2021 +0200
+++ b/eric6/WebBrowser/UrlBar/UrlBar.py	Thu Apr 08 18:27:47 2021 +0200
@@ -261,7 +261,7 @@
                     backgroundColor = Preferences.getWebBrowser(
                         "SecureUrlColor")
             
-            if progress == 0 or progress == 100:
+            if progress in (0, 100):
                 p.setBrush(QPalette.ColorRole.Base, backgroundColor)
                 p.setBrush(QPalette.ColorRole.Text, foregroundColor)
             else:

eric ide

mercurial