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.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/webengine/webengineprofile.cpp b/src/webengine/webengineprofile.cpp
index 9745949..62f744e 100644
--- a/src/webengine/webengineprofile.cpp
+++ b/src/webengine/webengineprofile.cpp
@@ -31,25 +31,25 @@ WebEngineProfile::WebEngineProfile(QObject *parent) :
// Off-the-record profiles have no persistent path
- m_homepage = sSettings->value("browser.profile.new.homepage").toUrl();
- m_newtab = sSettings->value("browser.profile.new.newtab").toUrl();
+ m_homepage = browser->settings()->value("browser.profile.new.homepage").toUrl();
+ m_newtab = browser->settings()->value("browser.profile.new.newtab").toUrl();
}
WebEngineProfile::WebEngineProfile(const QString &name, QObject *parent) :
QWebEngineProfile(name, parent)
{
m_name = name;
- setPersistentStoragePath(sSettings->value("browser.profile.storagePath").toString() + name);
- setCachePath(sSettings->value("browser.profile.cachePath").toString() + name);
+ setPersistentStoragePath(browser->settings()->value("browser.profile.storagePath").toString() + name);
+ setCachePath(browser->settings()->value("browser.profile.cachePath").toString() + name);
// Read profile settings
- QString profileIniPath = sSettings->value("browser.profile.path").toString() + name + "/profile.ini";
+ QString profileIniPath = browser->settings()->value("browser.profile.path").toString() + name + "/profile.ini";
// If none exist, use the defaults
if(!QFile::exists(profileIniPath)) {
qDebug("Creating new profile...");
- m_homepage = sSettings->value("browser.profile.new.homepage").toUrl();
- m_newtab = sSettings->value("browser.profile.new.newtab").toUrl();
+ m_homepage = browser->settings()->value("browser.profile.new.homepage").toUrl();
+ m_newtab = browser->settings()->value("browser.profile.new.newtab").toUrl();
// Else read them
} else {