fix error when unsetting browser appearance

This commit is contained in:
Damien Elmes 2018-02-26 11:21:12 +11:00
parent 012d63f882
commit 9902e21cba

View File

@ -464,8 +464,9 @@ adjust the template manually to switch the question and answer."""))
t['bfont'] = f.font.currentFont().family()
t['bsize'] = f.fontSize.value()
else:
del t['bfont']
del t['bsize']
for key in ("bfont", "bsize"):
if key in t:
del t[key]
def onTargetDeck(self):
from aqt.tagedit import TagEdit