eric7/WebBrowser/SearchWidget.py

branch
eric7
changeset 8703
3f1f67a9b179
parent 8318
962bce857696
child 8857
8191d15b8974
--- 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)
     

eric ide

mercurial