truncate start of history, not end of it

This commit is contained in:
Damien Elmes 2012-05-21 12:57:03 +09:00
parent 584b23cdcd
commit 7ebdf0f92d

View file

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