[gnome-boxes] machine: Handle new disconnection cases



commit 2fc38f4843b87c0d5870ecb5e888310f8fc92f6e
Author: Visarion Alexandru <viorel visarion gmail com>
Date:   Fri Jul 1 16:20:49 2016 +0300

    machine: Handle new disconnection cases
    
    Now that we decided to keep the SPICE display connection open in
    collection mode in certain situations, we shouldn't rely on trying
    to disconnect the display solely based on the UI state change, because
    we would ignore the case when the machine is disconnected or paused
    but its UI is already in collection mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744905

 src/machine.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 5440c5e..560f84c 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -219,6 +219,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
                 }
 
                 load_screenshot ();
+
+                disconnect_display ();
             });
 
             need_password_id = _display.notify["need-password"].connect (handle_auth);


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