Added functionality to always open new URLs in background.

This commit is contained in:
Nikhil Tanwar 2021-11-03 22:19:34 +05:30 committed by Matthieu Gautier
parent 7c0a249493
commit e044ea28f0

View File

@ -34,7 +34,7 @@ QWebEngineView* WebView::createWindow(QWebEnginePage::WebWindowType type)
|| type==QWebEnginePage::WebBrowserTab )
{
auto tabWidget = KiwixApp::instance()->getTabWidget();
return tabWidget->createNewTab(type==QWebEnginePage::WebBrowserTab)->getWebView();
return tabWidget->createNewTab(false)->getWebView();
}
return nullptr;
}