Reset search on new search
This commit is contained in:
parent
53861306ff
commit
7a2a7ab709
@ -56,6 +56,8 @@ class SearchParser(QObject):
|
|||||||
text -- The text to search for.
|
text -- The text to search for.
|
||||||
rev -- Search direction.
|
rev -- Search direction.
|
||||||
"""
|
"""
|
||||||
|
if self.text != text:
|
||||||
|
self.do_search.emit('', 0)
|
||||||
self.text = text
|
self.text = text
|
||||||
if rev:
|
if rev:
|
||||||
self.flags = QWebPage.FindBackward
|
self.flags = QWebPage.FindBackward
|
||||||
|
Loading…
Reference in New Issue
Block a user