Browse Source

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
Marta Marczykowska-Górecka 5 years ago
parent
commit
b31a154e32
1 changed files with 5 additions and 0 deletions
  1. 5 0
      qubesmanager/settings.py

+ 5 - 0
qubesmanager/settings.py

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