if (aWidgets.empty())
return false;
- ModuleBase_ModelWidget* aWgt;
+ ModuleBase_ModelWidget* aWgt, *aFilledWgt = 0;
ModuleBase_ViewerPrs aPrs;
QList<ModuleBase_ModelWidget*>::const_iterator aWIt;
QList<ModuleBase_ViewerPrs>::const_iterator aPIt;
if (!aWgt->setValue(&aValue)) {
isSet = false;
break;
- } else
+ } else {
isSet = true;
+ aFilledWgt = aWgt;
+ }
}
if (isSet && canBeCommitted()) {
// if all widgets are filled with selection
commit();
return true;
}
+ else {
+ //activate next widget
+ if (aFilledWgt) {
+ myPropertyPanel->activateNextWidget(aFilledWgt);
+ return true;
+ }
+ }
//ModuleBase_ModelWidget* aActiveWgt = myPropertyPanel->activeWidget();
//if ((myPreSelection.size() > 0) && aActiveWgt) {