mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
parent
9f09b55327
commit
14e2f8661d
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue