--- a/eric7/WebBrowser/SearchWidget.py Tue Oct 19 19:57:26 2021 +0200 +++ b/eric7/WebBrowser/SearchWidget.py Wed Oct 20 19:44:20 2021 +0200 @@ -89,14 +89,14 @@ self.__findBackwards, self.__findNextPrevCallback) - def __findNextPrevCallback(self, found): + def __findNextPrevCallback(self, result): """ Private method to process the result of the last search. - @param found flag indicating if the last search succeeded - @type bool + @param result reference to the search result + @type QWebEngineFindTextResult """ - if not found: + if result.numberOfMatches() == 0: self.infoLabel.setText(self.tr("Expression was not found.")) self.__setFindtextComboBackground(True)