1. WidgetActivation after focusTo.
void XGUI_PropertyPanel::activateWidget(ModuleBase_ModelWidget* theWidget)
{
+ emit widgetActivated(theWidget);
+ // it is important that the signal widgetActivated goes before the focusTo() calling
+ // in order to handle next possible signal in the focusTo() method
+ // (e.g. the widget editor sends a signal about the widget deactivation)
if (theWidget)
theWidget->focusTo();
- emit widgetActivated(theWidget);
}
QList<ModuleBase_ModelWidget*>::const_iterator anIt = aWidgets.begin(), aLast = aWidgets.end();
for (; anIt != aLast; anIt++) {
ModuleBase_ModelWidget* aCustom = *anIt;
- if (aCustom && (!aCustom->isInitialized(aFeature) || aCustom == aSenderWidget)) {
+ if (aCustom && (/*!aCustom->isInitialized(aFeature) ||*/ aCustom == aSenderWidget)) {
aCustom->storeValue(aFeature);
}
}