Fix :undo
This commit is contained in:
parent
aebc29337a
commit
b0ba2125a3
@ -329,6 +329,9 @@ class AbstractHistory:
|
||||
self._tab = tab
|
||||
self.history = None
|
||||
|
||||
def __len__(self):
|
||||
return len(self.history)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.history.items())
|
||||
|
||||
|
@ -291,7 +291,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
||||
use_current_tab = False
|
||||
if last_close in ['blank', 'startpage', 'default-page']:
|
||||
only_one_tab_open = self.count() == 1
|
||||
no_history = self.widget(0).history().count() == 1
|
||||
no_history = len(self.widget(0).history) == 1
|
||||
urls = {
|
||||
'blank': QUrl('about:blank'),
|
||||
'startpage': QUrl(config.get('general', 'startpage')[0]),
|
||||
|
Loading…
Reference in New Issue
Block a user