changeset 33076:27999e9c1b3f

Leave loop after item function has been found and called.
author ib
date Thu, 31 Mar 2011 09:03:53 +0000
parents c7cfa1a653c8
children 706f36627399
files gui/skin/skin.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Thu Mar 31 08:56:52 2011 +0000
+++ b/gui/skin/skin.c	Thu Mar 31 09:03:53 2011 +0000
@@ -906,10 +906,14 @@
         cutItem(tmp, param, '=', 1);
         strlower(item);
 
-        for (i = 0; i < FF_ARRAY_ELEMS(skinItem); i++)
-            if (!strcmp(item, skinItem[i].name))
+        for (i = 0; i < FF_ARRAY_ELEMS(skinItem); i++) {
+            if (!strcmp(item, skinItem[i].name)) {
                 if (skinItem[i].func(param) != 0)
                     return -2;
+                else
+                    break;
+            }
+        }
     }
 
     if (linenumber == 0) {