[gnome-boxes] libvirt-machine-props: Only connect to running displays



commit fefa40babec59a9fdf859301b3d6a4ba13beb106
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 11 12:39:11 2014 +0000

    libvirt-machine-props: Only connect to running displays
    
    If machine is not on, there is no point in trying to connect to its
    display as that wont work and it will only result in warnings on the
    console.

 src/libvirt-machine-properties.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 84cc1e7..f950313 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -104,7 +104,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
         var list = new List<Boxes.Property> ();
 
         // the wizard may want to modify display properties, before connect_display()
-        if (machine.display == null)
+        if (machine.is_on () && machine.display == null)
             try {
                 machine.update_display ();
             } catch (GLib.Error e) {


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