diff --git a/qutebrowser/misc/sessions.py b/qutebrowser/misc/sessions.py index 72a9b7224..77319d606 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -35,7 +35,6 @@ from qutebrowser.browser import tabhistory from qutebrowser.utils import (standarddir, objreg, qtutils, log, usertypes, message) from qutebrowser.commands import cmdexc, cmdutils -from qutebrowser.mainwindow import mainwindow from qutebrowser.config import config @@ -313,6 +312,8 @@ class SessionManager(QObject): name: The name of the session to load. temp: If given, don't set the current session. """ + # To break up partial import + from qutebrowser.mainwindow import mainwindow path = self._get_session_path(name, check_exists=True) try: with open(path, encoding='utf-8') as f: