snapshots: Tweak warning before run

Make it clear that VM configuration changes will also be dropped if
reverting to a snapshot while the VM is offline.

Suggested-by: Jorge Fábregas <jorge.fabregas@gmail.com>
This commit is contained in:
Cole Robinson 2014-03-26 08:54:10 -04:00
parent af216ebaf6
commit 9d743ab4c8
1 changed files with 9 additions and 4 deletions

View File

@ -553,10 +553,15 @@ class vmmSnapshotPage(vmmGObjectUI):
def _on_start_clicked(self, ignore):
snap = self._get_selected_snapshot()
result = self.err.yes_no(_("Are you sure you want to run "
"snapshot '%s'? All disk changes since "
"the last snapshot was created will be "
"discarded.") % snap.get_name())
msg = _("Are you sure you want to run snapshot '%s'? "
"All %s changes since the last snapshot was created will be "
"discarded.")
if self.vm.is_active():
msg = msg % (snap.get_name(), _("disk"))
else:
msg = msg % (snap.get_name(), _("disk and configuration"))
result = self.err.yes_no(msg)
if not result:
return