[gnome-boxes] libv-mach-props: Allow resources change if forced stopped
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libv-mach-props: Allow resources change if forced stopped
- Date: Fri, 25 Sep 2015 14:34:25 +0000 (UTC)
commit 3f43af7ee3fe6c94f55a80c743f044109ece1568
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Sep 25 15:23:52 2015 +0100
libv-mach-props: Allow resources change if forced stopped
If forced stopped during a live or installation session, let user change
the RAM and storage. That's mostly likely why they'd forced stop anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=749011
src/libvirt-machine-properties.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index bd60b8a..a3ac5a0 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -478,7 +478,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
property.widget.margin_top = 5;
if ((VMConfigurator.is_install_config (machine.domain_config) ||
VMConfigurator.is_live_config (machine.domain_config)) &&
- machine.window.ui_state != Boxes.UIState.WIZARD)
+ machine.window.ui_state != Boxes.UIState.WIZARD &&
+ machine.state != Machine.MachineState.FORCE_STOPPED)
property.sensitive = false;
else
property.changed.connect (on_ram_changed);
@@ -573,7 +574,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
property.defer_interval = 0;
if ((VMConfigurator.is_install_config (machine.domain_config) ||
VMConfigurator.is_live_config (machine.domain_config)) &&
- machine.window.ui_state != Boxes.UIState.WIZARD)
+ machine.window.ui_state != Boxes.UIState.WIZARD &&
+ machine.state != Machine.MachineState.FORCE_STOPPED)
property.sensitive = false;
else
property.changed.connect (on_storage_changed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]