mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -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
|
# deleting a cramming deck returns cards to their previous deck
|
||||||
# rather than deleting the cards
|
# rather than deleting the cards
|
||||||
self.col.sched.remDyn(did)
|
self.col.sched.remDyn(did)
|
||||||
|
if childrenToo:
|
||||||
|
for name, id in self.children(did):
|
||||||
|
self.rem(id, cardsToo)
|
||||||
else:
|
else:
|
||||||
# delete children first
|
# delete children first
|
||||||
if childrenToo:
|
if childrenToo:
|
||||||
|
|
Loading…
Reference in a new issue