Fixed error in detecting dvm-template having different NetVM
when the currect VM is the same as the dvm_template, there should be no warning fixes QubesOS/qubes-issues#4844
This commit is contained in:
parent
9afa6faca0
commit
b31a154e32
@ -559,6 +559,11 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
|
||||
if dispvm == qubesadmin.DEFAULT:
|
||||
dispvm = self.vm.property_get_default('default_dispvm')
|
||||
|
||||
if dispvm == self.vm:
|
||||
self.warn_netvm_dispvm.setVisible(False)
|
||||
return
|
||||
|
||||
dispvm_netvm = getattr(dispvm, 'netvm', None)
|
||||
|
||||
if own_netvm == qubesadmin.DEFAULT:
|
||||
|
Loading…
Reference in New Issue
Block a user