aboutsummaryrefslogtreecommitdiff
path: root/lib/webprofile/webprofilemanager.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-01-20 17:46:15 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2019-01-20 17:46:15 +0100
commit1de59e72087dc982ea8421060402ebec70cea823 (patch)
tree6e8d1648d64f974c1061bed104f1f027e8db5645 /lib/webprofile/webprofilemanager.cpp
parentAdd tools/report-clang-tidy.sh (diff)
downloadsmolbote-1de59e72087dc982ea8421060402ebec70cea823.tar.xz
Fix all profiles being created off-the-record
Diffstat (limited to 'lib/webprofile/webprofilemanager.cpp')
-rw-r--r--lib/webprofile/webprofilemanager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/webprofile/webprofilemanager.cpp b/lib/webprofile/webprofilemanager.cpp
index 2fca224..b0eff93 100644
--- a/lib/webprofile/webprofilemanager.cpp
+++ b/lib/webprofile/webprofilemanager.cpp
@@ -31,9 +31,6 @@ WebProfileManager::~WebProfileManager()
delete p.settings;
QFile::remove(filename);
} else if(p.settings != nullptr) {
-#ifdef QT_DEBUG
- qDebug("sync %s", qUtf8Printable(p.settings->fileName()));
-#endif
p.settings->sync();
delete p.settings;
}
@@ -53,7 +50,7 @@ WebProfile *WebProfileManager::profile(const QString &id, const QString &path, b
// QWebEngineCore cleans up profiles automatically, so no need to set parent
profile.ptr = [id, isOffTheRecord, profile]() {
- if(isOffTheRecord)
+ if(profile.value("otr", isOffTheRecord).toBool())
return new WebProfile(/* name */ profile.value("name", id).toString(), /* parent */ nullptr);
else
return new WebProfile(/* storageName */ id, /* name */ profile.value("name", id).toString(), /* parent */ nullptr);