diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-08-05 13:36:19 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-08-05 13:36:19 +0200 |
commit | b997220c3c2976a71a45c42509ea55db2762749d (patch) | |
tree | 72f04395bf539dcbdd4bdd0d893368e4796aef55 /qutebrowser/app.py | |
parent | 2c10a7d70f897ad4a1d8007d44deaca3b188955f (diff) | |
download | qutebrowser-b997220c3c2976a71a45c42509ea55db2762749d.tar.gz qutebrowser-b997220c3c2976a71a45c42509ea55db2762749d.zip |
Clean up running downloads when shutting down
The previous change (asking when a conflicting download is running) caused RuntimeErrors
because some stuff was already cleaned up when trying to remove them from the download
model. Probably something (e.g. storing self._manager in DownloadItems) shifted around
the order things are cleaned up.
Instead, clean up downloads explicitly by cancelling them all when shutting down.
Diffstat (limited to 'qutebrowser/app.py')
-rw-r--r-- | qutebrowser/app.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 55131ce7d..20459b890 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -485,8 +485,7 @@ def _init_modules(*, args): cache.init(q_app) log.init.debug("Initializing downloads...") - download_manager = qtnetworkdownloads.DownloadManager(parent=q_app) - objreg.register('qtnetwork-download-manager', download_manager) + qtnetworkdownloads.init() log.init.debug("Initializing Greasemonkey...") greasemonkey.init() |