mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 08:34:50 +08:00
fix(browser): respect WebWindowType in createWindow
This commit is contained in:
@@ -102,8 +102,8 @@ void WebView::resetZoom()
|
||||
|
||||
QWebEngineView *WebView::createWindow(QWebEnginePage::WebWindowType type)
|
||||
{
|
||||
Q_UNUSED(type)
|
||||
return Core::Application::instance()->mainWindow()->createTab()->webControl()->m_webView;
|
||||
const bool activate = (type != QWebEnginePage::WebBrowserBackgroundTab);
|
||||
return Core::Application::instance()->mainWindow()->createTab(QUrl(QStringLiteral("about:blank")), activate)->webControl()->m_webView;
|
||||
}
|
||||
|
||||
void WebView::contextMenuEvent(QContextMenuEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user