Fix coverage on old Qt versions

This commit is contained in:
Florian Bruhin 2017-05-15 13:39:15 +02:00
parent 51163f5e12
commit 658abf7b2b

View File

@ -282,7 +282,9 @@ class WebHistory(QObject):
"""
if config.get('general', 'private-browsing'):
return
if not url.isValid():
if not url.isValid(): # pragma: no cover
# the no cover pragma is a WORKAROUND for this not being covered in
# old Qt versions.
log.misc.warning("Ignoring invalid URL being added to history")
return