mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3e2161df68
commit
c03fad6f5d
@ -64,6 +64,7 @@ class UserDefinedDevice(QDialog):
|
||||
res = ''
|
||||
if len(new_devices) == 1:
|
||||
def fmtid(x):
|
||||
x = x or 0
|
||||
if isinstance(x, numbers.Integral):
|
||||
x = hex(x)
|
||||
if not x.startswith('0x'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user