Fix :undo

This commit is contained in:
Florian Bruhin 2016-07-04 15:18:02 +02:00
parent 09c3528585
commit a62e2a0c27

View File

@ -298,7 +298,7 @@ class TabbedBrowser(tabwidget.TabWidget):
'startpage': QUrl(config.get('general', 'startpage')[0]), 'startpage': QUrl(config.get('general', 'startpage')[0]),
'default-page': config.get('general', 'default-page'), 'default-page': config.get('general', 'default-page'),
} }
first_tab_url = self.widget(0).page().mainFrame().requestedUrl() first_tab_url = self.widget(0).cur_url
last_close_urlstr = urls[last_close].toString().rstrip('/') last_close_urlstr = urls[last_close].toString().rstrip('/')
first_tab_urlstr = first_tab_url.toString().rstrip('/') first_tab_urlstr = first_tab_url.toString().rstrip('/')
last_close_url_used = first_tab_urlstr == last_close_urlstr last_close_url_used = first_tab_urlstr == last_close_urlstr