From af5aa233bb01c83310a459ce3575b9a7e890077c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 16 Jul 2018 17:35:35 +0200 Subject: [PATCH] Fixed incorrect kernel display in VM settings Kernel set to 'None' was incorrectly displayed as 'default'. fixes QubesOS/qubes-issues#4043 --- qubesmanager/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubesmanager/utils.py b/qubesmanager/utils.py index 5b40f5f..f0937aa 100644 --- a/qubesmanager/utils.py +++ b/qubesmanager/utils.py @@ -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: