Simplify if-condition

This commit is contained in:
Florian Bruhin 2016-11-22 11:24:34 +01:00
parent 97d23144f7
commit 20af3133eb

View File

@ -279,12 +279,10 @@ class HintActions:
url = elem.resolve_url(context.baseurl)
if url is None:
raise HintingError("No suitable link found for this element.")
if context.rapid:
prompt = False
else:
prompt = None
prompt = False if context.rapid else None
qnam = context.tab.networkaccessmanager()
# FIXME:qtwebengine do this with QtWebEngine downloads?
download_manager = objreg.get('qtnetwork-download-manager',
scope='window', window=self._win_id)