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

[virt-tools-list] [virt-viewer 20/20] Accept ovirt:// URIs in add_recent



---
 src/remote-viewer-main.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
index 156bd0b..9a8fce0 100644
--- a/src/remote-viewer-main.c
+++ b/src/remote-viewer-main.c
@@ -170,7 +170,9 @@ recent_add(gchar *uri)
     if (uri == NULL)
         return;
 
-    g_return_if_fail(g_str_has_prefix(uri, "spice://") || g_str_has_prefix(uri, "vnc://"));
+    g_return_if_fail(g_str_has_prefix(uri, "spice://")
+                         || g_str_has_prefix(uri, "vnc://")
+                         || g_str_has_prefix(uri, "ovirt://"));
 
     recent = gtk_recent_manager_get_default();
     meta.display_name = uri;
-- 
1.7.10.2


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