mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
show message when search fails
This commit is contained in:
parent
1844cc84cc
commit
9358c78bad
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue