void setFocus(QWidget* theWidget, const QString& theInfo)
{
+ activateWindow(theWidget);
theWidget->setFocus();
// rectangle of focus is not visible on tool button widgets
theWidget->update();
hasParameter |= (aConstruction.get() != NULL);
if (hasFeature)
hasCompositeOwner |= (ModelAPI_Tools::compositeOwner(aFeature) != NULL);
+ else if (aResult.get())
+ hasCompositeOwner |= (ModelAPI_Tools::bodyOwner(aResult) != NULL);
if (!hasResultInHistory && aResult.get()) {
FeaturePtr aFeature = ModelAPI_Feature::feature(aResult);
hasResultInHistory = aFeature.get() && aFeature->isInHistory();
}
- if (hasFeature && hasResult && hasParameter && hasCompositeOwner && hasFeature)
+ if (hasFeature && hasResult && hasParameter && hasCompositeOwner)
break;
}
}
// (for the sketch result) to start processing of the sketch in the solver.
// TODO: these flushes should be moved in a separate method provided by Model
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
+ Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_VISUAL_ATTRIBUTES));
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_DELETED));