From 7ebdf0f92d08397db75f533cee381956536e2e42 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 21 May 2012 12:57:03 +0900 Subject: [PATCH] truncate start of history, not end of it --- aqt/addcards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/addcards.py b/aqt/addcards.py index dae0b617d..d808b51c4 100644 --- a/aqt/addcards.py +++ b/aqt/addcards.py @@ -109,7 +109,7 @@ class AddCards(QDialog): def addHistory(self, note): txt = stripHTMLMedia(",".join(note.fields))[:30] self.history.insert(0, (note.id, txt)) - self.history = self.history[-15:] + self.history = self.history[:15] self.historyButton.setEnabled(True) def onHistory(self):