From d9e6c812fc546ff6341f75316e9fc1d79e832f24 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Wed, 26 Apr 2017 18:40:13 +0300 Subject: [PATCH] For full-text search in article disable "Next" button if only one match found --- articleview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articleview.cc b/articleview.cc index 228515bc..2ed8da2e 100644 --- a/articleview.cc +++ b/articleview.cc @@ -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; }