Merge pull request #1568 from xiaoyifang/staged

merge staged to dev
This commit is contained in:
xiaoyifang 2024-06-12 22:22:24 +08:00 committed by GitHub
commit 6362153292
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 );
}
}