diff options
Diffstat (limited to 'src/webengine/webprofile.cpp')
-rw-r--r-- | src/webengine/webprofile.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/webengine/webprofile.cpp b/src/webengine/webprofile.cpp index 24b23a0..54aab5a 100644 --- a/src/webengine/webprofile.cpp +++ b/src/webengine/webprofile.cpp @@ -53,15 +53,19 @@ QUrl WebProfile::newtab() const return m_newtab; } -void WebProfile::loadProfile(QHash<QString, QString> conf, const QString &path) +void WebProfile::loadProfile(QHash<QString, QString> conf) { - m_configPath = path; + if(isOffTheRecord()) + m_configPath = conf.value("profile.path") + "/otr.ini"; + else + m_configPath = conf.value("profile.path") + "/" + storageName() + "/profile.ini"; #ifdef QT_DEBUG qDebug("Reading config for profile '%s': %s", qUtf8Printable(m_name), qUtf8Printable(m_configPath)); #endif QSettings config(m_configPath, QSettings::IniFormat); + m_search = config.value("search", conf.value("profile.search")).toString(); m_homepage = config.value("homepage", conf["profile.homepage"]).toUrl(); m_newtab = config.value("newtab", conf["profile.newtab"]).toUrl(); |