]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.cpp
Populate the UI when the initial URL is a local file. https://redmine.stoutner.com...
[PrivacyBrowserPC.git] / src / widgets / TabWidget.cpp
index 3a1b54f33f2028f411b5eefadb14d346f794bb13..ff8563c96a9b5d8b311aca160f51b3098e5ab41c 100644 (file)
@@ -334,6 +334,9 @@ PrivacyWebEngineView* TabWidget::addTab(const bool focusNewWebEngineView)
     // Set the spell check language.
     webEngineProfilePointer->setSpellCheckLanguages({QStringLiteral("en_US")});
 
+    // Populate the zoom factor.  This is necessary if a URL is being loaded, like a local URL, that does not trigger `applyDomainSettings()`.
+    privacyWebEngineViewPointer->setZoomFactor(Settings::zoomFactor());
+
     // Move to the new tab.
     tabWidgetPointer->setCurrentIndex(newTabIndex);