From 841c4b51adfd91a91e288931a96b987e2efa0bf9 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 1 Aug 2016 15:28:15 +0300 Subject: [PATCH] Make toolbox and switch also "attribute" node: they contain data-attributes and must be registered in switch/cases. --- src/Config/Config_Common.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Config/Config_Common.cpp b/src/Config/Config_Common.cpp index 6d89535e7..4184449f7 100644 --- a/src/Config/Config_Common.cpp +++ b/src/Config/Config_Common.cpp @@ -62,9 +62,10 @@ bool isAttributeNode(xmlNodePtr theNode) //it should not be a "source" or a "validator" node bool isLogical = isNode(theNode, NODE_SOURCE, NODE_VALIDATOR, NODE_SELFILTER, NULL); - bool isPagedContainer = isNode(theNode, WDG_TOOLBOX, WDG_TOOLBOX_BOX, - WDG_GROUP, WDG_OPTIONALBOX, - WDG_SWITCH, WDG_SWITCH_CASE, NULL); + // here must be only widgets not connected to attributes + bool isPagedContainer = isNode(theNode, WDG_TOOLBOX_BOX, + WDG_GROUP, + WDG_SWITCH_CASE, NULL); return !isLogical && !isPagedContainer; } -- 2.39.2