mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When displaying the list of identifiers in the edit metadata dialog, always display isbn first
This commit is contained in:
parent
4fdb7163b6
commit
c48ba61a46
@ -947,7 +947,13 @@ class IdentifiersEdit(QLineEdit): # {{{
|
||||
def fset(self, val):
|
||||
if not val:
|
||||
val = {}
|
||||
txt = ', '.join(['%s:%s'%(k, v) for k, v in val.iteritems()])
|
||||
def keygen(x):
|
||||
x = x[0]
|
||||
if x == 'isbn':
|
||||
x = '00isbn'
|
||||
return x
|
||||
ids = sorted(val.iteritems(), key=keygen)
|
||||
txt = ', '.join(['%s:%s'%(k, v) for k, v in ids])
|
||||
self.setText(txt.strip())
|
||||
self.setCursorPosition(0)
|
||||
return property(fget=fget, fset=fset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user