don't require restart to update kanji stats

This commit is contained in:
Damien Elmes 2008-12-10 22:10:27 +09:00
parent b8f3a25536
commit bbdcbf1153
3 changed files with 4 additions and 3 deletions

View file

@ -308,13 +308,10 @@ Please do not file a bug report with Anki.\n\n""")
earliest time returned %f earliest time returned %f
counts are %d %d %d counts are %d %d %d
according to the db %d %d %d according to the db %d %d %d
failed: failed:
%s %s
rev: rev:
%s %s
new: new:
%s""" % (delay, %s""" % (delay,
self.deck.failedSoonCount, self.deck.failedSoonCount,

View file

@ -83,6 +83,8 @@ class ModelChooser(QHBoxLayout):
self.drawModels() self.drawModels()
self.changed(model) self.changed(model)
self.deck.setModified() self.deck.setModified()
# check again
self.deck.haveJapanese = None
def onChange(self, idx): def onChange(self, idx):
model = self.deck.models[idx] model = self.deck.models[idx]

View file

@ -477,4 +477,6 @@ class ModelProperties(QDialog):
if self.onFinish: if self.onFinish:
self.onFinish() self.onFinish()
self.parent.deck.setUndoEnd(self.undoName) self.parent.deck.setUndoEnd(self.undoName)
# check again
self.parent.deck.haveJapanese = None
QDialog.reject(self) QDialog.reject(self)