show message when search fails
This commit is contained in:
parent
1844cc84cc
commit
9358c78bad
@ -270,7 +270,8 @@ class CardLayout(QDialog):
|
||||
cursor = editor.textCursor()
|
||||
cursor.movePosition(QTextCursor.Start)
|
||||
editor.setTextCursor(cursor)
|
||||
editor.find(text)
|
||||
if not editor.find(text):
|
||||
tooltip("No matches found.")
|
||||
|
||||
def on_search_next(self):
|
||||
text = self.tform.search_edit.text()
|
||||
|
Loading…
Reference in New Issue
Block a user