fix parent limit count

This commit is contained in:
Damien Elmes 2012-05-08 01:39:37 +09:00
parent fc2c7c434c
commit e99b5610c5
2 changed files with 1 additions and 2 deletions

View file

@ -146,7 +146,7 @@ class DeckConf(QDialog):
return "" return ""
lim = -1 lim = -1
for d in self.mw.col.decks.parents(self.deck['id']): for d in self.mw.col.decks.parents(self.deck['id']):
c = self.mw.col.decks.confForDid(d) c = self.mw.col.decks.confForDid(d['id'])
x = c[type]['perDay'] x = c[type]['perDay']
if lim == -1: if lim == -1:
lim = x lim = x

View file

@ -676,7 +676,6 @@ function showAnswer(txt) {
self.onReplayRecorded() self.onReplayRecorded()
def onReplayRecorded(self): def onReplayRecorded(self):
print "replay"
if not self._recordedAudio: if not self._recordedAudio:
return tooltip(_("You haven't recorded your voice yet.")) return tooltip(_("You haven't recorded your voice yet."))
clearAudioQueue() clearAudioQueue()