From 14e2f8661d6dd579749b5ac04d18fc1bc5375d5d Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 12 Jun 2024 22:20:41 +0800 Subject: [PATCH] fix: Scrollbar does not remember position fix #1555 --- src/ui/articleview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 02786d65..51e8de46 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -537,7 +537,7 @@ void ArticleView::jumpToDictionary( QString const & id, bool force ) { // jump only if neceessary, or when forced - if ( const QString targetArticle = scrollToFromDictionaryId( id ); force || targetArticle != getCurrentArticle() ) { + if ( const QString targetArticle = scrollToFromDictionaryId( id ); force && targetArticle != getCurrentArticle() ) { setCurrentArticle( targetArticle, true ); } }