[gnome-boxes] Don't silently ignore errors in ::connect_it impl



commit 78434676aa447b91f463c55bb25af7804e87eca5
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Sep 17 16:39:43 2012 +0200

    Don't silently ignore errors in ::connect_it impl
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684224

 src/remote-machine.vala |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/remote-machine.vala b/src/remote-machine.vala
index 333c83f..8bf543f 100644
--- a/src/remote-machine.vala
+++ b/src/remote-machine.vala
@@ -19,16 +19,12 @@ private class Boxes.RemoteMachine: Boxes.Machine, Boxes.IPropertiesProvider {
         if (display != null)
             return;
 
-        try {
-            if (source.source_type == "spice")
-                display = new SpiceDisplay.with_uri (config, source.uri);
-            else if (source.source_type == "vnc")
-                display = new VncDisplay.with_uri (config, source.uri);
-
-            display.connect_it ();
-        } catch (GLib.Error error) {
-            warning (error.message);
-        }
+        if (source.source_type == "spice")
+            display = new SpiceDisplay.with_uri (config, source.uri);
+        else if (source.source_type == "vnc")
+            display = new VncDisplay.with_uri (config, source.uri);
+
+        display.connect_it ();
     }
 
     public override List<Boxes.Property> get_properties (Boxes.PropertiesPage page) {



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