reset() after deleting empty cards

This commit is contained in:
Damien Elmes 2012-04-22 08:20:47 +09:00
parent 4866b5683e
commit f86d38d0f8
2 changed files with 4 additions and 0 deletions

View file

@ -891,6 +891,7 @@ will be lost. Continue?"""))
self.checkpoint(_("Delete Empty"))
self.col.remCards(cids)
tooltip(_("%d cards deleted.") % len(cids))
self.reset()
diag.connect(box, SIGNAL("accepted()"), onDelete)
diag.show()

View file

@ -96,8 +96,11 @@
<string>Maintenance</string>
</property>
<addaction name="actionFullDatabaseCheck"/>
<addaction name="separator"/>
<addaction name="actionCheckMediaDatabase"/>
<addaction name="separator"/>
<addaction name="actionEmptyCards"/>
<addaction name="separator"/>
<addaction name="actionFullSync"/>
</widget>
<addaction name="actionStudyDeck"/>