Add warning about potential license issues with template HVM
This commit is contained in:
parent
0d41abad90
commit
c40beed213
@ -105,17 +105,33 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<widget class="QFrame" name="hvmtemplatewarningbox">
|
||||||
<property name="orientation">
|
<property name="frameShape">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="frameShadow">
|
||||||
<size>
|
<enum>QFrame::Raised</enum>
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<widget class="QLabel" name="hvmtemplatewarning">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>482</width>
|
||||||
|
<height>30</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><p><span style=" font-weight:600; color:#ff0000;">Make sure that the license of the OS installed in a template VM grants you permission to run multiple instances of an installed system.</span></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
@ -138,8 +154,8 @@
|
|||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>248</x>
|
<x>257</x>
|
||||||
<y>254</y>
|
<y>190</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>157</x>
|
<x>157</x>
|
||||||
@ -154,8 +170,8 @@
|
|||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>316</x>
|
<x>325</x>
|
||||||
<y>260</y>
|
<y>190</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>286</x>
|
<x>286</x>
|
||||||
|
@ -79,6 +79,8 @@ class NewVmDlg (QDialog, Ui_NewVMDlg):
|
|||||||
self.vmname.selectAll()
|
self.vmname.selectAll()
|
||||||
self.vmname.setFocus()
|
self.vmname.setFocus()
|
||||||
|
|
||||||
|
self.hvmtemplatewarningbox.hide()
|
||||||
|
|
||||||
def fill_template_list(self):
|
def fill_template_list(self):
|
||||||
def filter_template(vm):
|
def filter_template(vm):
|
||||||
if vm.internal:
|
if vm.internal:
|
||||||
@ -126,6 +128,11 @@ class NewVmDlg (QDialog, Ui_NewVMDlg):
|
|||||||
else:
|
else:
|
||||||
self.template_name.setEnabled(True)
|
self.template_name.setEnabled(True)
|
||||||
|
|
||||||
|
if not checked and self.hvm_radio.isChecked():
|
||||||
|
self.hvmtemplatewarningbox.show()
|
||||||
|
else:
|
||||||
|
self.hvmtemplatewarningbox.hide()
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
self.done(0)
|
self.done(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user