[gnome-boxes] screenshot not properly updated on machine shutdown



commit c48d14689c0ddc09bc2a17e3f6512743c92bf363
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Jul 20 14:02:50 2012 +0200

    screenshot not properly updated on machine shutdown
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679751

 src/machine.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index cb3a7b9..dd44ebe 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -35,6 +35,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
         protected set {
             _state = value;
             debug ("State of '%s' changed to %s", name, state.to_string ());
+            if (value != MachineState.RUNNING)
+                load_screenshot ();
         }
     }
 



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