mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: full text search navigation panel (#1623)
* fix: full text search navigation panel * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
d30de48fa8
commit
ddb9203e34
|
@ -2133,6 +2133,11 @@ void ArticleView::highlightFTSResults()
|
|||
.arg( regString );
|
||||
|
||||
webview->page()->runJavaScript( script );
|
||||
auto parts = regString.split( " ", Qt::SkipEmptyParts );
|
||||
if ( !parts.isEmpty() ) {
|
||||
firstAvailableText = parts[ 0 ];
|
||||
ftsSearchPanel->show();
|
||||
}
|
||||
}
|
||||
|
||||
void ArticleView::setActiveDictIds( const ActiveDictIds & ad )
|
||||
|
|
Loading…
Reference in a new issue