[gnome-boxes/gnome-3-14] libvirt-machine: Not savable when being saved already



commit a697c8a6d395a03eea63000694a078f8bdc33164
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Oct 24 13:37:12 2014 +0100

    libvirt-machine: Not savable when being saved already
    
    Don't claim the machine to be savable if its being saved.
    
    This solves the issue of pause button still being available to user and
    Boxes leading into interesting scenerios if user clicks on the button.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730793

 src/libvirt-machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index ff7111c..22532b6 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -29,7 +29,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
         set { source.set_boolean ("source", "save-on-quit", value); }
     }
 
-    public override bool can_save { get { return state != MachineState.SAVED; } }
+    public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
 
     public override void disconnect_display () {
         stay_on_display = false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]