From f8f0c69d799e74b169cf6fab4fde18b734ee665b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 25 Sep 2014 22:56:22 +0200 Subject: [PATCH] Fix shutdown before prompter is alive. --- qutebrowser/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 487a2ee3a..08c343eaa 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -729,7 +729,8 @@ class Application(QApplication): return self._shutting_down = True log.destroy.debug("Shutting down with status {}...".format(status)) - if objreg.get('prompter').shutdown(): + prompter = objreg.get('prompter', None) + if prompter is not None and prompter.shutdown(): # If shutdown was called while we were asking a question, we're in # a still sub-eventloop (which gets quitted now) and not in the # main one.