[gnome-boxes] machine: Go to COLLECTION from explicit states only



commit 17062b8720315410407a9288e9eea39deec4fe9c
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date:   Fri Sep 5 18:16:30 2014 +0200

    machine: Go to COLLECTION from explicit states only
    
    When the machine disconnects and UIState is CREDS or DISPLAY we want to
    return to COLLECTION view. However in some other states, like WIZARD
    this doesnt make sense. This is why we shouldnt just exclude PROPERTIES
    state from the affected comparision.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736140

 src/machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 073f948..74ea5c5 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -151,7 +151,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
 
             disconnected_id = _display.disconnected.connect ((failed) => {
                 message (@"display $name disconnected");
-                if (window.ui_state != UIState.PROPERTIES) {
+                if (window.ui_state == UIState.CREDS || window.ui_state == UIState.DISPLAY) {
                     if (!stay_on_display && window.current_item == this)
                         window.set_state (Boxes.UIState.COLLECTION);
 


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