This commit is contained in:
Kovid Goyal 2019-05-30 07:28:56 +05:30
parent 3e2161df68
commit c03fad6f5d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'):