mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: when use arrow key in foundDictionaryPanel ,jump to the target dictionary
This commit is contained in:
parent
d551d120b8
commit
3a24a43410
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue