Refresh table selection when pause/resume
Since them dont have dbus events we need to manually update the selection
This commit is contained in:
parent
e2e66cbccb
commit
bc07e37266
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user