fixed: suspended appeared twice among tags after using active tags dialog.

This commit is contained in:
Timo Paulssen 2008-12-04 17:00:30 +01:00
parent 53834220da
commit c63e96d45c

View file

@ -4,7 +4,7 @@
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import ankiqt
from anki.utils import parseTags, joinTags
from anki.utils import parseTags, joinTags, canonifyTags
from ankiqt.ui.utils import saveGeom, restoreGeom
class ActiveTagsChooser(QDialog):
@ -45,7 +45,7 @@ class ActiveTagsChooser(QDialog):
if self.dialog.list.selectionModel().isSelected(idx):
suspended.append(self.tags[n])
n += 1
self.parent.deck.suspended = joinTags(suspended + ["Suspended"])
self.parent.deck.suspended = canonifyTags(joinTags(suspended + ["Suspended"]))
self.parent.deck.setModified()
self.parent.reset()
saveGeom(self, "activeTags")