Fix accessing user_agent()

This commit is contained in:
Florian Bruhin 2018-11-28 21:57:01 +01:00
parent 1d4729c7f7
commit ee2461a6fe
2 changed files with 2 additions and 2 deletions

View File

@ -1495,7 +1495,7 @@ class CommandDispatcher:
target = downloads.FileDownloadTarget(dest)
tab = self._current_widget()
user_agent = tab.user_agent()
user_agent = tab.private_api.user_agent()
if url:
if mhtml_:

View File

@ -305,7 +305,7 @@ class HintActions:
prompt = False if context.rapid else None
qnam = context.tab.private_api.networkaccessmanager()
user_agent = context.tab.user_agent()
user_agent = context.tab.private_api.user_agent()
# FIXME:qtwebengine do this with QtWebEngine downloads?
download_manager = objreg.get('qtnetwork-download-manager')