ekiga r7251 - trunk/lib/engine/components/resource-list



Author: jpuydt
Date: Thu Oct 16 19:56:44 2008
New Revision: 7251
URL: http://svn.gnome.org/viewvc/ekiga?rev=7251&view=rev

Log:
Making sure we'll get the list display-name before we get the entries : if we don't do this, we may end up with some elements not using that display name!

Modified:
   trunk/lib/engine/components/resource-list/rl-list.cpp

Modified: trunk/lib/engine/components/resource-list/rl-list.cpp
==============================================================================
--- trunk/lib/engine/components/resource-list/rl-list.cpp	(original)
+++ trunk/lib/engine/components/resource-list/rl-list.cpp	Thu Oct 16 19:56:44 2008
@@ -295,7 +295,6 @@
 
   for (xmlNodePtr child = node->children; child != NULL; child = child->next) {
 
-
     if (child->type == XML_ELEMENT_NODE
 	&& child->name != NULL
 	&& xmlStrEqual (BAD_CAST "display-name", child->name)) {
@@ -310,9 +309,13 @@
 	  display_name = (const char*) str;
 	xmlFree (str);
       }
-      continue;
+      break;
     }
 
+  }
+
+  for (xmlNodePtr child = node->children; child != NULL; child = child->next) {
+
     if (child->type == XML_ELEMENT_NODE
 	&& child->name != NULL
 	&& xmlStrEqual (BAD_CAST "list", child->name)) {



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