Don't crash if url is None in tabopen
This commit is contained in:
parent
5efc9de434
commit
35ffc2c2c0
@ -280,6 +280,7 @@ class TabbedBrowser(TabWidget):
|
|||||||
Return:
|
Return:
|
||||||
The opened WebView instance.
|
The opened WebView instance.
|
||||||
"""
|
"""
|
||||||
|
if url is not None:
|
||||||
qt_ensure_valid(url)
|
qt_ensure_valid(url)
|
||||||
log.webview.debug("Creating new tab with URL {}".format(url))
|
log.webview.debug("Creating new tab with URL {}".format(url))
|
||||||
tab = WebView(self)
|
tab = WebView(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user