[virt-tools-list] [PATCH virt-viewer v2 2/2] Use more accurate debug messages for foreign menu
Eduardo Lima (Etrunko)
etrunko at redhat.com
Thu Jun 23 17:15:15 UTC 2016
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
src/ovirt-foreign-menu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c
index 9b552eb..2d286fb 100644
--- a/src/ovirt-foreign-menu.c
+++ b/src/ovirt-foreign-menu.c
@@ -465,10 +465,11 @@ GtkWidget *ovirt_foreign_menu_get_gtk_menu(OvirtForeignMenu *foreign_menu)
GList *it;
char *current_iso;
- g_debug("Creating GtkMenu for foreign menu");
if (foreign_menu->priv->iso_names == NULL) {
+ g_debug("ISO list is empty, no menu to show");
return NULL;
}
+ g_debug("Creating GtkMenu for foreign menu");
current_iso = ovirt_foreign_menu_get_current_iso_name(foreign_menu);
gtk_menu = gtk_menu_new();
for (it = foreign_menu->priv->iso_names; it != NULL; it = it->next) {
--
2.5.5
More information about the virt-tools-list
mailing list