Don't add empty URLs to URL stack
This commit is contained in:
parent
e683d85799
commit
5656921a22
1
TODO
1
TODO
@ -39,7 +39,6 @@ Bugs
|
||||
====
|
||||
|
||||
- All kind of FIXMEs
|
||||
- u opens empty URLs
|
||||
- Wikipedia looks weird
|
||||
- F on duckduckgo result page opens in current page
|
||||
|
||||
|
@ -218,7 +218,9 @@ class TabbedBrowser(TabWidget):
|
||||
return
|
||||
last_close = config.get('tabbar', 'last-close')
|
||||
if self.count() > 1:
|
||||
self._url_stack.append(tab.url())
|
||||
url = tab.url()
|
||||
if not url.isEmpty():
|
||||
self._url_stack.append(url)
|
||||
self.removeTab(idx)
|
||||
tab.shutdown(callback=partial(self._cb_tab_shutdown, tab))
|
||||
elif last_close == 'quit':
|
||||
|
Loading…
Reference in New Issue
Block a user