diff --git a/qt/aqt/browser/find_and_replace.py b/qt/aqt/browser/find_and_replace.py index d6d111f58..2abb814d4 100644 --- a/qt/aqt/browser/find_and_replace.py +++ b/qt/aqt/browser/find_and_replace.py @@ -112,7 +112,7 @@ class FindAndReplaceDialog(QDialog): if self.form.field.currentIndex() == 0: field = None else: - field = self.field_names[self.form.field.currentIndex() - 2] + field = self.field_names[self.form.field.currentIndex()] find_and_replace( parent=self.parentWidget(),