mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: double click in welcome page
This commit is contained in:
parent
555811e3f3
commit
51701ce4aa
|
@ -2005,12 +2005,16 @@ void ArticleView::doubleClicked( QPoint pos )
|
|||
else {
|
||||
QUrl const & ref = webview->url();
|
||||
|
||||
auto groupId = getGroup( ref );
|
||||
if ( groupId == 0 || groupId == Instances::Group::HelpGroupId ) {
|
||||
groupId = currentGroupId;
|
||||
}
|
||||
if ( Utils::Url::hasQueryItem( ref, "dictionaries" ) ) {
|
||||
QStringList dictsList = Utils::Url::queryItemValue( ref, "dictionaries" ).split( ",", Qt::SkipEmptyParts );
|
||||
showDefinition( selectedText, dictsList, getGroup( ref ), false );
|
||||
showDefinition( selectedText, dictsList, groupId, false );
|
||||
}
|
||||
else
|
||||
showDefinition( selectedText, getGroup( ref ), getCurrentArticle() );
|
||||
showDefinition( selectedText, groupId, getCurrentArticle() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue