fix: Scrollbar does not remember position

fix #1555
This commit is contained in:
YiFang Xiao 2024-06-12 22:20:41 +08:00
parent 9f09b55327
commit 14e2f8661d

View file

@ -537,7 +537,7 @@ void ArticleView::jumpToDictionary( QString const & id, bool force )
{ {
// jump only if neceessary, or when forced // 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 ); setCurrentArticle( targetArticle, true );
} }
} }