[gnome-boxes] On display disconnect, only go to COLLECTION for current item



commit c03ea76b854b7d7e104c02db610246563644f124
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Nov 20 12:22:46 2012 +0100

    On display disconnect, only go to COLLECTION for current item
    
    If the display was still around due to e.g. keeping it alive
    for usb device redirection we don't want to go to collection view
    if another machine is showing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688717

 src/machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 1590cc2..bace623 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -125,7 +125,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
 
             disconnected_id = _display.disconnected.connect (() => {
                 message (@"display $name disconnected");
-                if (!stay_on_display)
+                if (!stay_on_display && App.app.current_item == this)
                     App.app.ui_state = Boxes.UIState.COLLECTION;
             });
 



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