Merge remote-tracking branch 'qubesos/pr/118'

* qubesos/pr/118:
  Fixed incorrect kernel display in VM settings
This commit is contained in:
Marek Marczykowski-Górecki 2018-07-17 15:56:09 +02:00
commit 9bb6a8cc94
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -60,6 +60,8 @@ def prepare_choice(widget, holder, propname, choice, default,
oldvalue = qubesadmin.DEFAULT
else:
oldvalue = getattr(holder, propname)
if oldvalue == '':
oldvalue = None
if transform is not None and oldvalue is not None:
oldvalue = transform(oldvalue)
else: