diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-05 10:55:56 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-05 14:59:10 +0200 |
commit | 7918bce1422fb217b59131111c6fb1ccdf52ddc4 (patch) | |
tree | 369fce128f1b021c0c88455039c0011a2014b9d7 /src/webengine/webview.cpp | |
parent | Disable plugins as broken (diff) | |
download | smolbote-7918bce1422fb217b59131111c6fb1ccdf52ddc4.tar.xz |
Code cleanup
- Replace Browser::getProfileManager with WebProfileManager::instance
- Make WebProfileManager::profileMenu a free function
- Replace Browser::loadProfile with Browser::loadProfiles
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r-- | src/webengine/webview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index 4fa227f..5b2b6fd 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -7,7 +7,6 @@ */ #include "webview.h" -#include "browser.h" #include "subwindow/subwindow.h" #include "wallet/wallet.h" #include "webpage.h" @@ -255,7 +254,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) }); auto *newTabMenu = menu->addMenu(tr("Open link in new tab with profile")); - dynamic_cast<Browser *>(qApp)->getProfileManager()->profileMenu(newTabMenu, [this, ctxdata](WebProfile *profile) { + profileMenu(newTabMenu, [this, ctxdata](WebProfile *profile) { auto *view = this->createWindow(QWebEnginePage::WebBrowserTab); view->setProfile(profile); view->load(ctxdata.linkUrl()); |