[gnome-boxes] libvirt-machine-props: No snapshots during installations
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine-props: No snapshots during installations
- Date: Mon, 15 Sep 2014 19:22:45 +0000 (UTC)
commit 9cfc1043785194da2d187a5372158408c3a48c1e
Author: Timm Bäder <mail baedert org>
Date: Thu Sep 11 19:57:04 2014 +0200
libvirt-machine-props: No snapshots during installations
We don't want to allow taking snapshots during an installation,
so just don't show the snapshots page in the sidebar if an installation
is in progress.
https://bugzilla.gnome.org/show_bug.cgi?id=735685
src/libvirt-machine-properties.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index bdb20d4..07a6d2c 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -280,7 +280,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
try {
var config = machine.domain.get_config (0);
// Snapshots currently don't work with host-passthrough
- if (config.get_cpu ().get_mode () != GVirConfig.DomainCpuMode.HOST_PASSTHROUGH)
+ if (config.get_cpu ().get_mode () != GVirConfig.DomainCpuMode.HOST_PASSTHROUGH &&
+ !VMConfigurator.is_install_config (config))
add_snapshots_property (ref list, machine);
} catch (GLib.Error e) {
warning (e.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]