mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
while decks nested under cram not supported, don't error on delete
This commit is contained in:
parent
2438ec9117
commit
cbb472712b
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ class DeckManager(object):
|
|||
# deleting a cramming deck returns cards to their previous deck
|
||||
# rather than deleting the cards
|
||||
self.col.sched.remDyn(did)
|
||||
if childrenToo:
|
||||
for name, id in self.children(did):
|
||||
self.rem(id, cardsToo)
|
||||
else:
|
||||
# delete children first
|
||||
if childrenToo:
|
||||
|
|
Loading…
Reference in a new issue