From e97c2f89bd6258c0c70927568a93867bbd232501 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 24 Apr 2012 19:05:15 +0200 Subject: [PATCH] settings: check if volatile_img has value before showing it --- qubesmanager/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 26a2a02..cc7bd4b 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -368,7 +368,10 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.root_img_path.setText(self.vm.template.root_img) else: self.root_img_path.setText("n/a") - self.volatile_img_path.setText(self.vm.volatile_img) + if self.vm.volatile_img is not None: + self.volatile_img_path.setText(self.vm.volatile_img) + else: + self.volatile_img_path.setText('n/a') self.private_img_path.setText(self.vm.private_img)