Disable download hints for QtWebEngine

This commit is contained in:
Florian Bruhin 2016-08-17 18:21:28 +02:00
parent 58d2d30e9a
commit 53e747d7ea

View File

@ -719,6 +719,12 @@ class HintManager(QObject):
tab = tabbed_browser.currentWidget()
if tab is None:
raise cmdexc.CommandError("No WebView available yet!")
if (tab.backend == usertypes.Backend.QtWebEngine and
target == Target.download):
message.error(self._win_id, "The download target is not available "
"yet with QtWebEngine.", immediately=True)
return
mode_manager = objreg.get('mode-manager', scope='window',
window=self._win_id)
if mode_manager.mode == usertypes.KeyMode.hint: