diff --git a/CMakeLists.txt b/CMakeLists.txt index bd261fc9e..0948cb859 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ set(APP_AUTHOR "Martin Rotter") set(APP_COPYRIGHT "\\251 2011-2022 ${APP_AUTHOR}") set(APP_REVERSE_NAME "com.github.rssguard") set(APP_DONATE_URL "https://github.com/sponsors/martinrotter") -set(APP_VERSION "4.3.1") +set(APP_VERSION "4.2.2") set(APP_URL "https://github.com/martinrotter/rssguard") set(APP_URL_DOCUMENTATION "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md") diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 3084be741..083602b12 100644 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -26,7 +26,7 @@ https://github.com/sponsors/martinrotter - + none diff --git a/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.cpp b/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.cpp index 777b746e4..0d78a76ee 100644 --- a/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.cpp +++ b/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.cpp @@ -431,8 +431,6 @@ void TextBrowserViewer::onAnchorClicked(const QUrl& url) { } void TextBrowserViewer::setHtml(const QString& html, const QUrl& base_url) { - setVerticalScrollBarPosition(0.0); - if (m_resourcesEnabled) { static QRegularExpression img_tag_rgx("\\]*src\\s*=\\s*[\"\']([^\"\']*)[\"\'][^\\>]*\\>", QRegularExpression::PatternOption::CaseInsensitiveOption | @@ -467,6 +465,8 @@ void TextBrowserViewer::setHtml(const QString& html, const QUrl& base_url) { QTimer::singleShot(20, this, &TextBrowserViewer::reloadHtmlDelayed); } + setVerticalScrollBarPosition(0.0); + // TODO: implement RTL for viewers somehow? /* auto to = document()->defaultTextOption();