diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-07 12:34:16 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-07 12:34:16 +0200 |
commit | aaca93be3d8f153dce3ae98d4d4787463f3210cf (patch) | |
tree | fb2eeabd937e056bd5006f3aca1f19b9776a31c3 /src | |
parent | Check URL validity before searching (diff) | |
download | smolbote-aaca93be3d8f153dce3ae98d4d4787463f3210cf.tar.xz |
Don't copy profiles into profile manager plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/browser.cpp | 4 |
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()); |