From a62e2a0c27047ed9b6d5f5669caf6847bfa773e1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 4 Jul 2016 15:18:02 +0200 Subject: [PATCH] Fix :undo --- qutebrowser/mainwindow/tabbedbrowser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 32cc8b909..fe2f5d61a 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -298,7 +298,7 @@ class TabbedBrowser(tabwidget.TabWidget): 'startpage': QUrl(config.get('general', 'startpage')[0]), '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('/') first_tab_urlstr = first_tab_url.toString().rstrip('/') last_close_url_used = first_tab_urlstr == last_close_urlstr