Changes according to @marmarek's request

This commit is contained in:
Marta Marczykowska-Górecka 2018-02-10 23:41:36 +01:00
parent 5af2709029
commit 45959aef71
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -395,8 +395,13 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
return [vm for vm in self.qubes_app.domains]
def update_single_row(self, vm):
# this fuction should be used to update a row that already exists
# to add a row, one needs to use the update_table function - the
# whole table needs to be redrawn (and sorted)
if vm in self.qubes_app.domains:
self.vms_in_table[vm.qid].update()
else:
self.update_table()
def fill_table(self):
# save current selection