settings: mark template as read-only when the VM is running
This commit is contained in:
parent
8cd3cace49
commit
4e5f63be24
@ -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
|
||||
|
@ -65,7 +65,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Template:</string>
|
||||
<string><html><head/><body><p>Template<span style=" color:#ff0000;">*</span>:</p></body></html></string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>template_name</cstring>
|
||||
|
Loading…
Reference in New Issue
Block a user