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