don't show interval if card is new

This commit is contained in:
Damien Elmes 2011-04-19 09:46:12 +09:00
parent b7bd648762
commit 3eb9212422

View file

@ -224,6 +224,8 @@ class DeckModel(QAbstractTableModel):
elif type == "cardLapses": elif type == "cardLapses":
return str(c.lapses) return str(c.lapses)
elif type == "cardIvl": elif type == "cardIvl":
if c.type == 0:
return _("(new)")
return fmtTimeSpan(c.ivl*86400) return fmtTimeSpan(c.ivl*86400)
elif type == "cardEase": elif type == "cardEase":
if c.type == 0: if c.type == 0: