diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-02 15:47:01 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-02 15:47:01 +0200 |
commit | a6e6823da845ca14d37d8914c80185257e8c0e62 (patch) | |
tree | 1c0126f5a78bc95a6f536d2b091cf762972943c9 /src/browser.cpp | |
parent | Updated documentation (diff) | |
download | smolbote-a6e6823da845ca14d37d8914c80185257e8c0e62.tar.xz |
Refactoring TabBar
- cleaned up code
- moved to mainwindow/widgets
- add Close tabs left/right to context menu
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index d1e763f..e462280 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -7,8 +7,11 @@ */ #include "browser.h" +#include "configuration/configuration.h" #include "mainwindow/mainwindow.h" #include "webengine/urlinterceptor.h" +#include "webengine/webengineprofile.h" +#include <QWebEngineDownloadItem> #include <QtConcurrent> #include <bookmarks/bookmarkswidget.h> #include <downloads/downloadswidget.h> @@ -141,9 +144,11 @@ std::shared_ptr<WebEngineProfile> Browser::profile(const QString &storageName) if(storageName.isEmpty()) { // create off-the-record profile _profile = std::make_shared<WebEngineProfile>(nullptr); + _profile->loadProfile(m_config->section("profile"), path + "/otr.ini"); } else { // regular profile _profile = std::make_shared<WebEngineProfile>(storageName, nullptr); + _profile->loadProfile(m_config->section("profile"), path + "/" + storageName + "/profile.ini"); _profile->setPersistentStoragePath(path + "/storage"); _profile->setCachePath(path + "/cache"); } |