mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Prevent search prompt from being saved as a filter
Normalisation would render it useless.
This commit is contained in:
parent
7941c03ec0
commit
8d786213d3
1 changed files with 1 additions and 1 deletions
|
|
@ -1038,7 +1038,7 @@ QTableView {{ gridline-color: {grid} }}
|
|||
|
||||
if self._currentFilterIsSaved():
|
||||
ml.addItem(tr(TR.BROWSING_REMOVE_CURRENT_FILTER), self._onRemoveFilter)
|
||||
else:
|
||||
elif self._searchPrompt != self.form.searchEdit.lineEdit().text():
|
||||
ml.addItem(tr(TR.BROWSING_SAVE_CURRENT_FILTER), self._onSaveFilter)
|
||||
|
||||
return ml
|
||||
|
|
|
|||
Loading…
Reference in a new issue