aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-07 12:34:16 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-07 12:34:16 +0200
commitaaca93be3d8f153dce3ae98d4d4787463f3210cf (patch)
treefb2eeabd937e056bd5006f3aca1f19b9776a31c3 /src/browser.cpp
parentCheck URL validity before searching (diff)
downloadsmolbote-aaca93be3d8f153dce3ae98d4d4787463f3210cf.tar.xz
Don't copy profiles into profile manager plugin
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());