[gnome-boxes] libvirt-machine-props: Allow editing system props before creation
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine-props: Allow editing system props before creation
- Date: Tue, 26 Mar 2013 00:44:37 +0000 (UTC)
commit 661163460af2babfe5cdad8b124d55c7567e8ac1
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Mar 25 17:48:34 2013 +0200
libvirt-machine-props: Allow editing system props before creation
While we shouldn't allow these props to be modified during
installation/live session, we want users to be able to modify them
before they hit 'create' in the wizard.
https://bugzilla.gnome.org/show_bug.cgi?id=696399
src/libvirt-machine-properties.vala | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 8c486e8..7465f39 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -408,8 +408,9 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
max_ram * Osinfo.KIBIBYTES,
64 * Osinfo.MEBIBYTES,
FormatSizeFlags.IEC_UNITS);
- if (VMConfigurator.is_install_config (machine.domain_config) ||
- VMConfigurator.is_live_config (machine.domain_config))
+ if ((VMConfigurator.is_install_config (machine.domain_config) ||
+ VMConfigurator.is_live_config (machine.domain_config)) &&
+ App.app.previous_ui_state != Boxes.UIState.WIZARD)
property.sensitive = false;
else
property.changed.connect (on_ram_changed);
@@ -524,8 +525,9 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
volume_info.capacity,
max_storage,
256 * MEGABYTES);
- if (VMConfigurator.is_install_config (machine.domain_config) ||
- VMConfigurator.is_live_config (machine.domain_config))
+ if ((VMConfigurator.is_install_config (machine.domain_config) ||
+ VMConfigurator.is_live_config (machine.domain_config)) &&
+ App.app.previous_ui_state != Boxes.UIState.WIZARD)
property.sensitive = false;
else
property.changed.connect (on_storage_changed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]