mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
don't save group/tags when there's no fact
This commit is contained in:
parent
f3d51e74c7
commit
bb0b3d1823
1 changed files with 2 additions and 0 deletions
|
|
@ -468,6 +468,8 @@ class Editor(object):
|
|||
self.group.setText(self.mw.deck.groupName(gid))
|
||||
|
||||
def saveTagsAndGroup(self):
|
||||
if not self.fact:
|
||||
return
|
||||
self.fact.gid = self.mw.deck.groupId(unicode(self.group.text()))
|
||||
self.fact.updateCardGids()
|
||||
self.fact.tags = parseTags(unicode(self.tags.text()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue