aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/web/profilemanager.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/web/profilemanager.h b/lib/web/profilemanager.h
index 5d751d2..ad6fa1f 100644
--- a/lib/web/profilemanager.h
+++ b/lib/web/profilemanager.h
@@ -49,9 +49,15 @@ private:
if(!deleteSelf)
this->settings.sync();
else {
- QFile(path).remove();
- QDir(profile->persistentStoragePath()).removeRecursively();
- QDir(profile->cachePath()).removeRecursively();
+ QFile::remove(path);
+
+ if(!profile->isOffTheRecord()) {
+ if(!profile->persistentStoragePath().isEmpty())
+ QDir(profile->persistentStoragePath()).removeRecursively();
+
+ if(!profile->cachePath().isEmpty())
+ QDir(profile->cachePath()).removeRecursively();
+ }
}
}