mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
For full-text search in article disable "Next" button if only one match found
This commit is contained in:
parent
eb78238f25
commit
d9e6c812fc
|
@ -2419,7 +2419,7 @@ void ArticleView::highlightFTSResults()
|
|||
|
||||
ui.ftsSearchFrame->show();
|
||||
ui.ftsSearchPrevious->setEnabled( false );
|
||||
ui.ftsSearchNext->setEnabled( !allMatches.isEmpty() );
|
||||
ui.ftsSearchNext->setEnabled( allMatches.size()>1 );
|
||||
|
||||
ftsSearchIsOpened = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue