Fix tabs -> last-close = ignore.

See #822 / 71fee12b5b.
Fixes #834.
This commit is contained in:
Florian Bruhin 2015-07-26 12:05:52 +02:00
parent d0f1523363
commit 94b0f92b75

View File

@ -234,9 +234,14 @@ class TabbedBrowser(tabwidget.TabWidget):
tab: The QWebView to be closed.
"""
last_close = config.get('tabs', 'last-close')
count = self.count()
if last_close == 'ignore' and count == 1:
return
self._remove_tab(tab)
if self.count() == 0:
if count == 1: # We just closed the last tab above.
if last_close == 'close':
self.close_window.emit()
elif last_close == 'blank':