Template changes commit confirmation
This commit is contained in:
parent
5fb1181159
commit
c903e5f25c
@ -778,12 +778,21 @@ class VmManagerWindow(QMainWindow):
|
|||||||
|
|
||||||
def update_vm(self):
|
def update_vm(self):
|
||||||
vm = self.get_selected_vm()
|
vm = self.get_selected_vm()
|
||||||
|
assert not vm.is_running()
|
||||||
|
|
||||||
try:
|
reply = QMessageBox.question(None, "VM Update Confirmation",
|
||||||
vm.commit_changes();
|
"Are you sure you want to commit template <b>'{0}'</b> changes?<br>"
|
||||||
except Exception as ex:
|
"<small>AppVMs will see the changes after restart.</small>".format(vm.name),
|
||||||
QMessageBox.warning (None, "Error commiting changes!", "ERROR: {0}".format(ex))
|
QMessageBox.Yes | QMessageBox.Cancel)
|
||||||
return
|
|
||||||
|
app.processEvents()
|
||||||
|
|
||||||
|
if reply == QMessageBox.Yes:
|
||||||
|
try:
|
||||||
|
vm.commit_changes();
|
||||||
|
except Exception as ex:
|
||||||
|
QMessageBox.warning (None, "Error commiting changes!", "ERROR: {0}".format(ex))
|
||||||
|
return
|
||||||
|
|
||||||
def showcpuload(self):
|
def showcpuload(self):
|
||||||
self.__cpugraphs = self.action_showcpuload.isChecked()
|
self.__cpugraphs = self.action_showcpuload.isChecked()
|
||||||
|
Loading…
Reference in New Issue
Block a user