[gnome-boxes/gnome-3-20] libvirt-machine: Mark under-import as un-saveable



commit 04ce3554ece2d56ab06fb8124417986fc0f25cfc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue May 3 18:32:19 2016 +0100

    libvirt-machine: Mark under-import as un-saveable
    
    We can't really save machine that is under import, so let's not give
    that impression.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710307

 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 b279518..d5bf256 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -31,7 +31,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
     }
 
     public override bool suspend_at_exit { get { return connection == App.app.default_connection && 
!run_in_bg; } }
-    public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
+    public override bool can_save { get { return !saving && state != MachineState.SAVED && !importing; } }
     protected override bool should_autosave {
         get {
             return (base.should_autosave &&


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