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
|
- All kind of FIXMEs
|
||||||
- u opens empty URLs
|
|
||||||
- Wikipedia looks weird
|
- Wikipedia looks weird
|
||||||
- F on duckduckgo result page opens in current page
|
- F on duckduckgo result page opens in current page
|
||||||
|
|
||||||
|
@ -218,7 +218,9 @@ class TabbedBrowser(TabWidget):
|
|||||||
return
|
return
|
||||||
last_close = config.get('tabbar', 'last-close')
|
last_close = config.get('tabbar', 'last-close')
|
||||||
if self.count() > 1:
|
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)
|
self.removeTab(idx)
|
||||||
tab.shutdown(callback=partial(self._cb_tab_shutdown, tab))
|
tab.shutdown(callback=partial(self._cb_tab_shutdown, tab))
|
||||||
elif last_close == 'quit':
|
elif last_close == 'quit':
|
||||||
|
Loading…
Reference in New Issue
Block a user