summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-08-16 21:26:57 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-08-16 21:28:18 +0200
commit661945c61b469015b2f016ff8086a0d47391643c (patch)
tree199243921adc18bcd06b24ea66bd9bfda098e083
parent496e5a38fa4ef09bca7b4a4971c01d2f92d7a4ef (diff)
downloadqutebrowser-661945c61b469015b2f016ff8086a0d47391643c.tar.gz
qutebrowser-661945c61b469015b2f016ff8086a0d47391643c.zip
Fix :restart deleting the given --basedir
-rw-r--r--CHANGELOG.asciidoc1
-rw-r--r--qutebrowser/app.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 56dce666b..e0f0940bc 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -21,6 +21,7 @@ Fixed
~~~~~
- Fixed crash when doing `:<space><enter>`, another corner-case introduced in v0.8.0
+- Fixed `:restart` deleting the basedir when it was given with `--basedir`.
v0.8.2
------
diff --git a/qutebrowser/app.py b/qutebrowser/app.py
index 6d7b6a3ea..f7dbccf44 100644
--- a/qutebrowser/app.py
+++ b/qutebrowser/app.py
@@ -551,8 +551,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)