aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webengineprofile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/webengineprofile.cpp')
-rw-r--r--src/webengine/webengineprofile.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webengine/webengineprofile.cpp b/src/webengine/webengineprofile.cpp
index 2fed937..ddf62a8 100644
--- a/src/webengine/webengineprofile.cpp
+++ b/src/webengine/webengineprofile.cpp
@@ -30,14 +30,14 @@ WebEngineProfile::WebEngineProfile(QObject *parent) :
m_name = tr("Off-the-record");
}
-WebEngineProfile::WebEngineProfile(const QString &storageName, QObject *parent) :
- QWebEngineProfile(storageName, parent)
+WebEngineProfile::WebEngineProfile(const QString &name, const QString &path, QObject *parent) :
+ QWebEngineProfile(name, parent)
{
- m_name = storageName;
- setPersistentStoragePath(sSettings->value("browser.profile.path").toString() + storageName);
- setCachePath(sSettings->value("browser.profile.path").toString() + storageName);
+ m_name = name;
+ setPersistentStoragePath(path + name);
+ setCachePath(path + name);
- QString profilePath = persistentStoragePath() + "/profile.ini";
+ QString profilePath = path + "/profile.ini";
qDebug("Reading profile from [%s]", qUtf8Printable(profilePath));
QSettings config(profilePath, QSettings::IniFormat);