[svn-commits] qwell: tag autotag_for_asterisk r967 - /tags/autotag_for_asterisk/1.8.8.0-rc2/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 9 16:50:54 CST 2011


Author: qwell
Date: Wed Nov  9 16:50:50 2011
New Revision: 967

URL: http://svnview.digium.com/svn/menuselect?view=rev&rev=967
Log:
Revert r966.

Modified:
    tags/autotag_for_asterisk/1.8.8.0-rc2/menuselect.c

Modified: tags/autotag_for_asterisk/1.8.8.0-rc2/menuselect.c
URL: http://svnview.digium.com/svn/menuselect/tags/autotag_for_asterisk/1.8.8.0-rc2/menuselect.c?view=diff&rev=967&r1=966&r2=967
==============================================================================
--- tags/autotag_for_asterisk/1.8.8.0-rc2/menuselect.c (original)
+++ tags/autotag_for_asterisk/1.8.8.0-rc2/menuselect.c Wed Nov  9 16:50:50 2011
@@ -292,12 +292,9 @@
 				mem->defaultenabled = cur3->child->value.opaque;
 			}
 
-			if (!cat->positive_output) {
-				mem->enabled = 1;
-				if (!(mem->defaultenabled && strcasecmp(mem->defaultenabled, "no"))) {
-					mem->was_enabled = 1;
-					print_debug("Enabling %s because the category does not have positive output\n", mem->name);
-				}
+			if (!cat->positive_output && !(mem->defaultenabled && strcasecmp(mem->defaultenabled, "no"))) {
+				mem->was_enabled = mem->enabled = 1;
+				print_debug("Enabling %s because the category does not have positive output\n", mem->name);
 			}
 
 			cur3 = mxmlFindElement(cur2, cur2, "support_level", NULL, NULL, MXML_DESCEND);




More information about the svn-commits mailing list