diff options
author | Paul Mairo <herrmpr@gmail.com> | 2023-07-22 16:01:05 +0200 |
---|---|---|
committer | Paul Mairo <herrmpr@gmail.com> | 2023-07-22 16:14:51 +0200 |
commit | 8fdf168ac0e1fd6e2ce041abd3a8869fb5225261 (patch) | |
tree | d1ff5b71f6869d40ce73f1b303bddd1a4997f052 /qutebrowser | |
parent | 4a031f4eafd786ce22b0487389ed70514c9897ed (diff) | |
download | qutebrowser-8fdf168ac0e1fd6e2ce041abd3a8869fb5225261.tar.gz qutebrowser-8fdf168ac0e1fd6e2ce041abd3a8869fb5225261.zip |
quitter: fix prompt_queue being None at shudown
When pressing C-c if qutebrowser is not fully started yet, the prompt_queue is not
initialized and prompts for an annoying crash report.
Fixes #6827
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/misc/quitter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/misc/quitter.py b/qutebrowser/misc/quitter.py index 59e2d552f..3396dbe51 100644 --- a/qutebrowser/misc/quitter.py +++ b/qutebrowser/misc/quitter.py @@ -219,7 +219,8 @@ class Quitter(QObject): status, session)) sessions.shutdown(session, last_window=last_window) - prompt.prompt_queue.shutdown() + if prompt.prompt_queue is not None: + prompt.prompt_queue.shutdown() # If shutdown was called while we were asking a question, we're in # a still sub-eventloop (which gets quit now) and not in the main |