mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
opt: clear the delayedHighlight text earlier
This commit is contained in:
parent
006c45e0e9
commit
b5d005d3ed
|
@ -402,8 +402,11 @@ void ArticleView::showDefinition( Config::InputPhrase const & phrase, unsigned g
|
|||
if ( scrollTo.size() )
|
||||
Utils::Url::addQueryItem( req, "scrollto", scrollTo );
|
||||
|
||||
if(delayedHighlightText.size())
|
||||
if( delayedHighlightText.size() )
|
||||
{
|
||||
Utils::Url::addQueryItem( req, "regexp", delayedHighlightText );
|
||||
delayedHighlightText.clear();
|
||||
}
|
||||
|
||||
Contexts::Iterator pos = contexts.find( "gdanchor" );
|
||||
if( pos != contexts.end() )
|
||||
|
@ -582,12 +585,6 @@ void ArticleView::loadFinished( bool result )
|
|||
}
|
||||
if( Utils::Url::hasQueryItem( ui.definition->url(), "regexp" ) )
|
||||
highlightFTSResults();
|
||||
|
||||
if( !delayedHighlightText.isEmpty() )
|
||||
{
|
||||
// findText( delayedHighlightText, QWebEnginePage::FindCaseSensitively ,[](bool){});
|
||||
delayedHighlightText.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void ArticleView::loadProgress(int ){
|
||||
|
|
Loading…
Reference in a new issue