Display default netvm

This commit is contained in:
donoban 2021-01-25 21:27:50 +01:00
parent a02aeb4c25
commit 94ede98007
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -1243,6 +1243,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
for vm in self.get_selected_vms(): for vm in self.get_selected_vms():
if vm.netvm == "n/a": if vm.netvm == "n/a":
self.network_menu.actions()[0].setIcon(QIcon(icon)) self.network_menu.actions()[0].setIcon(QIcon(icon))
elif vm.vm.property_is_default("netvm"):
self.network_menu.actions()[1].setIcon(QIcon(icon))
else: else:
for entry in self.network_menu.actions(): for entry in self.network_menu.actions():
if entry.data() == vm.netvm: if entry.data() == vm.netvm: