aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index d1e763f..e462280 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -7,8 +7,11 @@
*/
#include "browser.h"
+#include "configuration/configuration.h"
#include "mainwindow/mainwindow.h"
#include "webengine/urlinterceptor.h"
+#include "webengine/webengineprofile.h"
+#include <QWebEngineDownloadItem>
#include <QtConcurrent>
#include <bookmarks/bookmarkswidget.h>
#include <downloads/downloadswidget.h>
@@ -141,9 +144,11 @@ std::shared_ptr<WebEngineProfile> Browser::profile(const QString &storageName)
if(storageName.isEmpty()) {
// create off-the-record profile
_profile = std::make_shared<WebEngineProfile>(nullptr);
+ _profile->loadProfile(m_config->section("profile"), path + "/otr.ini");
} else {
// regular profile
_profile = std::make_shared<WebEngineProfile>(storageName, nullptr);
+ _profile->loadProfile(m_config->section("profile"), path + "/" + storageName + "/profile.ini");
_profile->setPersistentStoragePath(path + "/storage");
_profile->setCachePath(path + "/cache");
}