Merge remote-tracking branch 'qubesos/pr/115'

* qubesos/pr/115:
  Make 'NetVm' column in Qube Manager clearer with regars to defaults
This commit is contained in:
Marek Marczykowski-Górecki 2018-07-16 14:15:12 +02:00
commit 18d45e53c6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -310,7 +310,11 @@ class VmNetvmItem(QtGui.QTableWidgetItem):
if getattr(self.vm, 'netvm', None) is None:
self.setText("n/a")
else:
self.setText(self.vm.netvm.name)
if self.vm.property_is_default('netvm'):
text = 'default (' + self.vm.netvm.name +')'
else:
text = self.vm.netvm.name
self.setText(text)
def __lt__(self, other):
if self.qid == 0: