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:
commit
18d45e53c6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user