From 1dbedbc474b24a17ec5607ca1ad05590b796e2b1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 16 Aug 2016 21:26:57 +0200 Subject: [PATCH] Fix :restart deleting the given --basedir --- CHANGELOG.asciidoc | 1 + qutebrowser/app.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 00dc397c7..5bd6f3f24 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -141,6 +141,7 @@ Fixed - Fixed crash when cancelling a download after doing `:prompt-open-download` - Fixed crash when writing a download to disk fails with `:prompt-open-download`. +- Fixed `:restart` deleting the basedir when it was given with `--basedir`. v0.8.1 ------ diff --git a/qutebrowser/app.py b/qutebrowser/app.py index ef2be8cab..9d76b3fcb 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -539,8 +539,9 @@ class Quitter: argdict['session'] = session argdict['override_restore'] = False # Ensure :restart works with --temp-basedir - argdict['temp_basedir'] = False - argdict['temp_basedir_restarted'] = True + if self._args.temp_basedir: + argdict['temp_basedir'] = False + argdict['temp_basedir_restarted'] = True # Dump the data data = json.dumps(argdict)