From 388e958f395cfab585533d9ad5f7c714437b70dd Mon Sep 17 00:00:00 2001 From: RumovZ Date: Sun, 10 Jan 2021 11:30:14 +0100 Subject: [PATCH] Don't add 1 when calling _template_filter() See #913. --- qt/aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 10b684524..c673cc93c 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -1390,7 +1390,7 @@ QTableView {{ gridline-color: {grid} }} num=c + 1, name=self._escapeMenuItem(tmpl["name"]), ) - subm.addItem(name, self._template_filter(nt["name"], c + 1)) + subm.addItem(name, self._template_filter(nt["name"], c)) m.addChild(noteTypes.chunked()) return m