fix: when use arrow key in foundDictionaryPanel ,jump to the target dictionary

This commit is contained in:
YiFang Xiao 2023-05-11 07:17:34 +08:00 committed by xiaoyifang
parent d551d120b8
commit 3a24a43410

View file

@ -2667,16 +2667,7 @@ void MainWindow::dictsListSelectionChanged()
QList< QListWidgetItem * > selected = ui.dictsList->selectedItems();
if( selected.size() )
{
ArticleView * view = getCurrentArticleView();
if( view )
{
QString dictId = ui.dictsList->selectedItems().at( 0 )->data( Qt::UserRole ).toString();
view->setActiveArticleId( dictId );
}
// selection change ,no need to jump to article ,if jump to article ,the position in webview would be changed
// when click the dictionary in the html.
// jumpToDictionary( selected.front() );
jumpToDictionary( selected.front() );
}
}