when deleting a note, we need to rebuild the queue

This commit is contained in:
Damien Elmes 2012-03-19 22:20:02 +09:00
parent 259c5c6dfc
commit 37061c6661
2 changed files with 2 additions and 2 deletions

View file

@ -616,7 +616,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
def onDelete(self): def onDelete(self):
self.checkpoint(_("Delete")) self.checkpoint(_("Delete"))
self.col.remNotes([self.reviewer.card.note().id]) self.col.remNotes([self.reviewer.card.note().id])
self.reviewer.nextCard() self.reset()
tooltip("Note and its cards deleted.") tooltip("Note and its cards deleted.")
def onBuryNote(self): def onBuryNote(self):

View file

@ -358,7 +358,7 @@
<normaloff>:/icons/system-software-update.png</normaloff>:/icons/system-software-update.png</iconset> <normaloff>:/icons/system-software-update.png</normaloff>:/icons/system-software-update.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Change Fact Type...</string> <string>Change Note Type...</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Shift+M</string> <string>Ctrl+Shift+M</string>