Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b558b7c
)
Issue #1368: Creation of a Qt panel. Widget creator interface correction to manage...
author
nds
<nds@opencascade.com>
Tue, 29 Mar 2016 11:24:51 +0000
(14:24 +0300)
committer
nds
<nds@opencascade.com>
Tue, 29 Mar 2016 11:24:51 +0000
(14:24 +0300)
src/ModuleBase/ModuleBase_WidgetFactory.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_WidgetFactory.cpp
b/src/ModuleBase/ModuleBase_WidgetFactory.cpp
index e8176696254d4ce51b8a1c0d0aae89c4cdfa22ad..165aa750fa7acdf9aac2c929efd25642edba9067 100644
(file)
--- 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())