Fix new edit metadata dialog not automatically fixing isbns

This commit is contained in:
Kovid Goyal 2011-04-26 14:29:18 -06:00
parent 2f408c170f
commit 3435831d52

View File

@ -943,6 +943,10 @@ class IdentifiersEdit(QLineEdit): # {{{
for x in parts: for x in parts:
c = x.split(':') c = x.split(':')
if len(c) == 2: if len(c) == 2:
if c[0] == 'isbn':
v = check_isbn(c[1])
if v is not None:
c[1] = v
ans[c[0]] = c[1] ans[c[0]] = c[1]
return ans return ans
def fset(self, val): def fset(self, val):