aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 62fc729..7bf4adf 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -91,7 +91,7 @@ void Browser::registerPlugin(const Plugin &plugin)
}
}
-void Browser::setup(const QString &defaultProfile)
+void Browser::setup()
{
Q_ASSERT(m_config);
@@ -111,7 +111,7 @@ void Browser::setup(const QString &defaultProfile)
// cookie request filter
// load profiles
- m_profileManager = new ProfileManager(m_config->section("profile"), defaultProfile, this);
+ m_profileManager = new ProfileManager(m_config->section("profile"), this);
for(const QString &profilePath : Util::files(m_config->value<QString>("profile.path").value(), { "*.profile" })) {
this->loadProfile(profilePath);
}
@@ -171,7 +171,7 @@ void Browser::createSession(const QJsonObject &object)
if(tabs.isEmpty())
window->addTab(profile->newtab());
else {
- for(const QJsonValue &t : subwindow.value("tabs").toArray()) {
+ for(const auto &t : tabs) {
const QJsonObject tab = t.toObject();
const QUrl url = QUrl::fromUserInput(tab.value("url").toString());
WebProfile *p = m_profileManager->profile(tab.value("profile").toString());