From 4e5f63be2431d6262574e75506a361eeac2b646b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 5 Apr 2015 21:03:41 +0200 Subject: [PATCH] settings: mark template as read-only when the VM is running --- qubesmanager/settings.py | 1 + settingsdlg.ui | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 62be933..862810b 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -250,6 +250,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.template_name.insertItem(i, text) i += 1 self.template_name.setCurrentIndex(self.template_idx) + self.template_name.setEnabled(not self.vm.is_running()) else: self.template_name.setEnabled(False) self.template_idx = -1 diff --git a/settingsdlg.ui b/settingsdlg.ui index cc1d7ca..82d00bc 100644 --- a/settingsdlg.ui +++ b/settingsdlg.ui @@ -65,7 +65,7 @@ - Template: + <html><head/><body><p>Template<span style=" color:#ff0000;">*</span>:</p></body></html> template_name