From: Soren Stoutner Date: Wed, 27 Dec 2023 22:15:53 +0000 (-0700) Subject: Use the webpage title as the default archive name. https://redmine.stoutner.com... X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=commitdiff_plain;h=c443cca294f7b5b4c71ea55094dcfd685c9a2256 Use the webpage title as the default archive name. https://redmine.stoutner.com/issues/1139 --- diff --git a/src/widgets/TabWidget.cpp b/src/widgets/TabWidget.cpp index a8f59b4..bd3882d 100644 --- a/src/widgets/TabWidget.cpp +++ b/src/widgets/TabWidget.cpp @@ -907,7 +907,7 @@ void TabWidget::reloadAndBypassCache() const void TabWidget::saveArchive() { // Get the suggested file name. - QString suggestedFileName = currentPrivacyWebEngineViewPointer->url().host() + ".mht"; + QString suggestedFileName = currentPrivacyWebEngineViewPointer->title() + ".mht"; // Get the download directory. QString downloadDirectory = Settings::downloadLocation();