[gnome-boxes] libvirt-machine: Don't autosave express installs
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: Don't autosave express installs
- Date: Wed, 12 Nov 2014 14:46:43 +0000 (UTC)
commit 0627b890862ca5be60b602a7934ae6be969df3a7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 12 13:34:24 2014 +0000
libvirt-machine: Don't autosave express installs
Express installations are supposed to run in the background since the
whole point of it is for user to not interact with the box until
installation is complete.
https://bugzilla.gnome.org/show_bug.cgi?id=694931
src/libvirt-machine.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 742ed02..a41f187 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -30,6 +30,11 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
}
public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
+ protected override bool should_autosave {
+ get {
+ return (base.should_autosave && (vm_creator == null || !vm_creator.express_install));
+ }
+ }
public override void disconnect_display () {
stay_on_display = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]