From 24fb0a2e358d73c9f5f71263b526440549183355 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 1 Jun 2021 07:12:46 +0200 Subject: [PATCH] fix #429 --- resources/desktop/com.github.rssguard.appdata.xml | 2 +- src/librssguard/gui/webviewer.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 41ea109c6..7a11cf541 100644 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -30,7 +30,7 @@ https://martinrotter.github.io/donate/ - + none diff --git a/src/librssguard/gui/webviewer.cpp b/src/librssguard/gui/webviewer.cpp index f95a0378f..253a02db1 100644 --- a/src/librssguard/gui/webviewer.cpp +++ b/src/librssguard/gui/webviewer.cpp @@ -82,6 +82,10 @@ bool WebViewer::resetWebPageZoom(bool to_factory_default) { const qreal new_factor = to_factory_default ? 1.0 : qApp->settings()->value(GROUP(Messages), SETTING(Messages::Zoom)).toReal(); + if (to_factory_default) { + qApp->settings()->setValue(GROUP(Messages), Messages::Zoom, new_factor); + } + if (new_factor != zoomFactor()) { setZoomFactor(new_factor); return true;