Refresh table selection when pause/resume

Since them dont have dbus events we need to manually update the selection
This commit is contained in:
donoban 2018-05-09 12:05:07 +02:00
parent e2e66cbccb
commit bc07e37266
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -770,6 +770,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
try: try:
vm.unpause() vm.unpause()
self.vms_in_table[vm.qid].update() self.vms_in_table[vm.qid].update()
self.table_selection_changed()
except exc.QubesException as ex: except exc.QubesException as ex:
QtGui.QMessageBox.warning( QtGui.QMessageBox.warning(
None, self.tr("Error unpausing Qube!"), None, self.tr("Error unpausing Qube!"),
@ -822,6 +823,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
try: try:
vm.pause() vm.pause()
self.vms_in_table[vm.qid].update() self.vms_in_table[vm.qid].update()
self.table_selection_changed()
except exc.QubesException as ex: except exc.QubesException as ex:
QtGui.QMessageBox.warning( QtGui.QMessageBox.warning(
None, None,