For full-text search in article disable "Next" button if only one match found

This commit is contained in:
Abs62 2017-04-26 18:40:13 +03:00
parent eb78238f25
commit d9e6c812fc

View file

@ -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;
}