[gnome-boxes] app-window: Unschedule autosave when going to properties



commit 144e5b10786444c836f9d6e0a72096961de488a4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Jan 30 16:34:46 2015 +0000

    app-window: Unschedule autosave when going to properties
    
    When we go to properties of a machine, its not the case of the machine
    being in background. Since properties can be launched directly from
    collection view, we need to explicitly unschedule the autosave that was
    scheduled when we entered collection view.

 src/app-window.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index dd10ebf..6d2ab7e 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -205,6 +205,8 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
         case UIState.DISPLAY:
         case UIState.WIZARD:
         case UIState.PROPERTIES:
+            if (current_item != null)
+                (current_item as Machine).unschedule_autosave ();
 
             break;
 


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