[gnome-boxes] machine: Only autosave running machines



commit 3d5949209b7f07772942eded93b01fb978187abc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Apr 27 17:07:01 2015 +0100

    machine: Only autosave running machines
    
    There is no point in autosaving non-running machines.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748381

 src/machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 81cd884..e671f31 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -21,7 +21,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
 
     protected virtual bool should_autosave {
         get {
-            return (can_save && autosave_timeout_id == 0);
+            return (can_save && is_running () && autosave_timeout_id == 0);
         }
     }
 


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