Don't crash if url is None in tabopen

This commit is contained in:
Florian Bruhin 2014-06-23 07:48:45 +02:00
parent 5efc9de434
commit 35ffc2c2c0

View File

@ -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)