Fixed an issue clearing the search for the QWebEngine based help viewer implementation. eric7

Tue, 28 Dec 2021 15:44:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 28 Dec 2021 15:44:52 +0100
branch
eric7
changeset 8866
a6024873a0c0
parent 8865
457e2b39ec3f
child 8867
2d0f11118840

Fixed an issue clearing the search for the QWebEngine based help viewer implementation.

eric7/EricWidgets/EricTextEditSearchWidget.py file | annotate | diff | comparison | revisions
--- a/eric7/EricWidgets/EricTextEditSearchWidget.py	Tue Dec 28 15:44:04 2021 +0100
+++ b/eric7/EricWidgets/EricTextEditSearchWidget.py	Tue Dec 28 15:44:52 2021 +0100
@@ -259,6 +259,8 @@
         """
         if self.__textedit:
             self.__textedit.setFocus(Qt.FocusReason.ActiveWindowFocusReason)
+            if self.__texteditType == EricTextEditType.QWEBENGINEVIEW:
+                self.__textedit.findText("")
         if self.closeButton is not None:
             self.hide()
             self.closePressed.emit()

eric ide

mercurial