Filter out 'dom0' from selectable netvm list
This is workaround until #757 will be done.
This commit is contained in:
parent
ba0cced495
commit
aca43a46da
@ -108,6 +108,8 @@ class NewVmDlg (QDialog, Ui_NewVMDlg):
|
||||
def filter_netvm(vm):
|
||||
if vm.internal:
|
||||
return False
|
||||
if vm.qid == 0:
|
||||
return False
|
||||
if vm.is_netvm():
|
||||
return True
|
||||
if vm.is_proxyvm():
|
||||
|
@ -254,7 +254,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
|
||||
|
||||
if (not self.vm.is_netvm() or self.vm.is_proxyvm()):
|
||||
netvm_list = [vm for vm in self.qvm_collection.values() if not vm.internal and vm.is_netvm()]
|
||||
netvm_list = [vm for vm in self.qvm_collection.values() if not vm.internal and vm.is_netvm() and vm.qid != 0]
|
||||
self.netvm_idx = -1
|
||||
|
||||
text = "default ("+self.qvm_collection.get_default_netvm().name+")"
|
||||
|
Loading…
Reference in New Issue
Block a user