Fix tab closing with tabs->last-close = blank.

Fixes #220.
This commit is contained in:
Florian Bruhin 2014-10-27 20:46:35 +01:00
parent afaba7bfdc
commit 8d22d558e2

View File

@ -224,7 +224,7 @@ class TabbedBrowser(tabwidget.TabWidget):
self._remove_tab(tab)
self.close_window.emit()
elif last_close == 'blank':
tab.openurl('about:blank')
tab.openurl(QUrl('about:blank'))
def _remove_tab(self, tab):
"""Remove a tab from the tab list and delete it properly.