diff --git a/anki/collection.py b/anki/collection.py index 3f068d457..d54cdf932 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -700,6 +700,7 @@ select id from notes where mid not in """ + ids2str(self.models.ids())) if t['did'] == "None": t['did'] = None problems.append(_("Fixed AnkiDroid deck override bug.")) + self.models.save(m) if m['type'] == MODEL_STD: # model with missing req specification if 'req' not in m: diff --git a/aqt/utils.py b/aqt/utils.py index 21312b232..53b3509cc 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -331,6 +331,10 @@ def mungeQA(col, txt): txt = stripSounds(txt) # osx webkit doesn't understand font weight 600 txt = re.sub("font-weight: *600", "font-weight:bold", txt) + if isMac: + # custom fonts cause crashes on osx at the moment + txt = txt.replace("font-face", "invalid") + return txt def applyStyles(widget):