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

[libvirt] [designer PATCH 3/6] Add missing break in gvir_designer_domain_add_graphics



For a GVIR_DESIGNER_DOMAIN_GRAPHICS_DESKTOP graphics type, do not
fallback on the code handling GVIR_DESIGNER_DOMAIN_GRAPHICS_RDP.

Signed-off-by: Pino Toscano <ptoscano redhat com>
---
 libvirt-designer/libvirt-designer-domain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvirt-designer/libvirt-designer-domain.c b/libvirt-designer/libvirt-designer-domain.c
index adca733..cd9349f 100644
--- a/libvirt-designer/libvirt-designer-domain.c
+++ b/libvirt-designer/libvirt-designer-domain.c
@@ -543,6 +543,8 @@ gvir_designer_domain_add_graphics(GVirDesignerDomain *design,
         graphics = gvir_designer_domain_create_graphics_desktop(design, error);
         if (graphics == NULL)
             return NULL;
+
+        break;
     }
 
     case GVIR_DESIGNER_DOMAIN_GRAPHICS_RDP: {
-- 
2.17.2


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