[virt-tools-list] [virt-viewer][PATCH 5/7 v3] remote-viewer: Avoid simple_message_dialog() when errors can be propagated

Fabiano Fidêncio fidencio at redhat.com
Thu Mar 26 22:26:58 UTC 2015


Remove the dialog used to report errors when create_session() fails,
propagating the error is enough and it is already done.

Related: rhbz#1085216
---
 src/remote-viewer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/remote-viewer.c b/src/remote-viewer.c
index 8a8bb9c..5258a51 100644
--- a/src/remote-viewer.c
+++ b/src/remote-viewer.c
@@ -1222,7 +1222,7 @@ remote_viewer_start(VirtViewerApp *app, GError **err)
 
     if (priv->controller) {
         if (virt_viewer_app_create_session(app, "spice", &error) < 0) {
-            virt_viewer_app_simple_message_dialog(app, _("Couldn't create a Spice session"));
+            g_debug("Couldn't create a Spice session");
             goto cleanup;
         }
 
-- 
2.3.3




More information about the virt-tools-list mailing list