Don't add empty URLs to URL stack

This commit is contained in:
Florian Bruhin 2014-05-06 14:08:40 +02:00
parent e683d85799
commit 5656921a22
2 changed files with 3 additions and 2 deletions

1
TODO
View File

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

View File

@ -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':