From: nds Date: Tue, 29 Mar 2016 11:24:51 +0000 (+0300) Subject: Issue #1368: Creation of a Qt panel. Widget creator interface correction to manage... X-Git-Tag: V_2.3.0~363 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a3d31271be41bff510b9702c2e77c2fea5b99bd;p=modules%2Fshaper.git Issue #1368: Creation of a Qt panel. Widget creator interface correction to manage Qt panel type. --- diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.cpp b/src/ModuleBase/ModuleBase_WidgetFactory.cpp index e81766962..165aa750f 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFactory.cpp @@ -74,8 +74,10 @@ void ModuleBase_WidgetFactory::createWidget(ModuleBase_PageBase* thePage) std::string aWType = myWidgetApi->widgetType(); if (aWType == NODE_FEATURE) { QWidget* aPanel = createPanel(thePage->pageWidget()); - thePage->addWidget(aPanel); - return; + if (aPanel) { + thePage->addWidget(aPanel); + return; + } } if (!myWidgetApi->toChildWidget())