Prevent search prompt from being saved as a filter

Normalisation would render it useless.
This commit is contained in:
RumovZ 2021-01-28 13:31:08 +01:00
parent 99cb68513c
commit 1635f20af3

View File

@ -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