// just to be sure that everybody knows that changes were performed
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
+ Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_DELETED));
if (myNestedNum != -1) // this nested transaction is owervritten
ObjectPtr aObj = (*aIt);
ResultPtr aRes = boost::dynamic_pointer_cast<ModelAPI_Result>(aObj);
if (aRes) {
- isDisplayed = myDisplayer->redisplay(aRes, false);
+ if (aRes->data())
+ isDisplayed = myDisplayer->redisplay(aRes, false);
+ else {
+ myDisplayer->erase(aRes, false);
+ isDisplayed = true;
+ }
}
}
if (isDisplayed)