X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.cpp;fp=src%2Fwidgets%2FPrivacyWebEngineView.cpp;h=ba56d31d76c6827f9b3e1e60927c756f9ed4e896;hp=10bff6d14554f45a2d922d4a1ae831e935705637;hb=8689d74c8a97cbeb81b69bed8e195ed68bca2ee1;hpb=8292f934246cb283e1b0c32f4388c674f275c7aa diff --git a/src/widgets/PrivacyWebEngineView.cpp b/src/widgets/PrivacyWebEngineView.cpp index 10bff6d..ba56d31 100644 --- a/src/widgets/PrivacyWebEngineView.cpp +++ b/src/widgets/PrivacyWebEngineView.cpp @@ -49,8 +49,9 @@ QWebEngineView* PrivacyWebEngineView::createWindow(QWebEnginePage::WebWindowType // Create the requsted window type. switch (webWindowType) { case QWebEnginePage::WebBrowserTab: { - // Create the new tab and return the privacy WebEngine view pointer. It will then be populated with the link from the context menu. - return browserWindowPointer->tabWidgetPointer->addTab(); + // Create the new tab and return the privacy WebEngine view pointer. `true` removes the focus from the blank URL line edit. + // The new privacy WebEngine view pointer is returned so it can be populated with the link from the context menu. + return browserWindowPointer->tabWidgetPointer->addTab(true); } default: {