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:
Marta Marczykowska-Górecka 2019-02-26 19:31:41 +01:00
parent 9afa6faca0
commit b31a154e32
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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: