Remove unnecessary code

This commit is contained in:
Florian Bruhin 2017-02-27 17:55:50 +01:00
parent 8d22991d03
commit fb5377b710

View File

@ -2001,11 +2001,6 @@ class CommandDispatcher:
QApplication.postEvent(window, press_event)
QApplication.postEvent(window, release_event)
else:
try:
tab = objreg.get('tab', scope='tab', tab='current')
except objreg.RegistryUnavailableError:
raise cmdexc.CommandError("No focused webview!")
tab = self._current_widget()
tab.send_event(press_event)
tab.send_event(release_event)