mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
[System] Revert test code
This commit is contained in:
parent
bbc6fb1511
commit
edc6e427ec
@ -99,11 +99,17 @@ void CmdAddItemExec::redo()
|
|||||||
m_commandData->m_createdItemIndex = m_commandData->m_indexAfter;
|
m_commandData->m_createdItemIndex = m_commandData->m_indexAfter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_notificationCenter) m_notificationCenter->notifyObserversOfDataChange(obj);
|
||||||
|
|
||||||
listField->uiCapability()->updateConnectedEditors();
|
listField->uiCapability()->updateConnectedEditors();
|
||||||
|
|
||||||
if (listField->ownerObject())
|
if (listField->ownerObject())
|
||||||
{
|
{
|
||||||
listField->ownerObject()->uiCapability()->updateConnectedEditors();
|
caf::PdmUiObjectHandle* ownerUiObject = uiObj(listField->ownerObject());
|
||||||
|
if (ownerUiObject)
|
||||||
|
{
|
||||||
|
ownerUiObject->fieldChangedByUi(listField, QVariant(), QVariant());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -126,12 +132,17 @@ void CmdAddItemExec::undo()
|
|||||||
caf::SelectionManager::instance()->removeObjectFromAllSelections(obj);
|
caf::SelectionManager::instance()->removeObjectFromAllSelections(obj);
|
||||||
|
|
||||||
listField->erase(m_commandData->m_createdItemIndex);
|
listField->erase(m_commandData->m_createdItemIndex);
|
||||||
|
|
||||||
listField->uiCapability()->updateConnectedEditors();
|
listField->uiCapability()->updateConnectedEditors();
|
||||||
|
|
||||||
|
if (m_notificationCenter) m_notificationCenter->notifyObservers();
|
||||||
|
|
||||||
if (listField->ownerObject())
|
if (listField->ownerObject())
|
||||||
{
|
{
|
||||||
listField->ownerObject()->uiCapability()->updateConnectedEditors();
|
caf::PdmUiObjectHandle* ownerUiObject = uiObj(listField->ownerObject());
|
||||||
|
if (ownerUiObject)
|
||||||
|
{
|
||||||
|
ownerUiObject->fieldChangedByUi(listField, QVariant(), QVariant());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete obj;
|
delete obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user