aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 2985dd3..11feac0 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -123,9 +123,7 @@ void Browser::setup(const QString &defaultProfile)
auto *profileEditor = qobject_cast<ProfileInterface *>(p.instance.get());
Q_ASSERT_X(profileEditor != nullptr, "Browser::setup", "profile interface cast failed");
- for(auto i = m_profiles.constBegin(); i != m_profiles.constEnd(); ++i) {
- profileEditor->addProfile(i.key(), qobject_cast<QWebEngineProfile*>(i.value()));
- }
+ profileEditor->setProfiles(&m_profiles);
}
auto *plugin = qobject_cast<PluginInterface *>(p.instance.get());