mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
commit
6362153292
|
@ -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