diff options
-rw-r--r-- | qutebrowser/qt/machinery.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/qt/machinery.py b/qutebrowser/qt/machinery.py index 522866360..513e0c643 100644 --- a/qutebrowser/qt/machinery.py +++ b/qutebrowser/qt/machinery.py @@ -277,8 +277,10 @@ def init(args: argparse.Namespace) -> SelectionInfo: raise Error("init() already called before application init") info = _select_wrapper(args) + if info.wrapper is not None: + _set_globals(info) + # If info is None here (no Qt wrapper available), we'll show an error later # in earlyinit.py. - _set_globals(info) return info |