Fix crash when pasting an URL

This commit is contained in:
Florian Bruhin 2014-06-20 22:31:39 +02:00
parent 9a33efdb3f
commit d6fb0f7774

View File

@ -522,7 +522,8 @@ class CommandDispatcher:
if tab: if tab:
self._tabs.tabopen(url) self._tabs.tabopen(url)
else: else:
self.openurl(url) widget = self._tabs.currentWidget()
widget.openurl(url)
@cmdutils.register(instance='mainwindow.tabs.cmd') @cmdutils.register(instance='mainwindow.tabs.cmd')
def paste_tab(self, sel=False): def paste_tab(self, sel=False):