From 57de2731018630983cd133b6e4167a85cf259ef7 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 12 Oct 2015 12:26:36 +0300 Subject: [PATCH] Avoid the warning message in a right case. --- src/ModuleBase/ModuleBase_WidgetFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.cpp b/src/ModuleBase/ModuleBase_WidgetFactory.cpp index 40a6c5a41..bedab8cb3 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFactory.cpp @@ -153,7 +153,8 @@ ModuleBase_ModelWidget* ModuleBase_WidgetFactory::createWidgetByType(const std:: result = new ModuleBase_WidgetToolbox(theParent, myWidgetApi, myParentId); } else if (theType == WDG_SWITCH) { result = new ModuleBase_WidgetSwitch(theParent, myWidgetApi, myParentId); - } else if (theType == WDG_TOOLBOX_BOX || theType == WDG_SWITCH_CASE) { + } else if (theType == WDG_TOOLBOX_BOX || theType == WDG_SWITCH_CASE || + theType == NODE_VALIDATOR) { // Do nothing for "box" and "case" result = NULL; } else { -- 2.39.2