parent
b5a70dbdec
commit
e22ef776f9
@ -296,7 +296,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
newtab: True to open URL in a new tab, False otherwise.
|
newtab: True to open URL in a new tab, False otherwise.
|
||||||
"""
|
"""
|
||||||
qtutils.ensure_valid(url)
|
qtutils.ensure_valid(url)
|
||||||
if newtab:
|
if newtab or self.currentWidget() is None:
|
||||||
self.tabopen(url, background=False)
|
self.tabopen(url, background=False)
|
||||||
else:
|
else:
|
||||||
self.currentWidget().openurl(url)
|
self.currentWidget().openurl(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user