diff options
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r-- | src/webengine/webview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index d5f88d0..c6fd4a4 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -7,7 +7,7 @@ */ #include "webview.h" -#include "mainwindow/window.h" +#include "mainwindow/subwindow.h" #include "webpage.h" #include "webprofile.h" #include "widgets/pagemenu.h" @@ -23,7 +23,7 @@ WebView::WebView(WebProfile *profile, QWidget *parent) m_profile = profile; setPage(new WebPage(profile, this)); - m_parentWindow = qobject_cast<Window *>(parent); + m_parentWindow = qobject_cast<SubWindow *>(parent); // load status and progress connect(this, &QWebEngineView::loadStarted, this, [this]() { @@ -86,7 +86,7 @@ WebView *WebView::createWindow(QWebEnginePage::WebWindowType type) case QWebEnginePage::WebBrowserTab: // a web browser tab - m_parentWindow->swapToTab(index); + m_parentWindow->setCurrentTab(index); break; case QWebEnginePage::WebDialog: |