mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Replaced use of capability template with convenience
This commit is contained in:
@@ -72,7 +72,7 @@ void RicDeleteItemExec::redo()
|
||||
delete obj;
|
||||
|
||||
caf::PdmObjectHandle* parentObj = listField->ownerObject();
|
||||
parentObj->capability<caf::PdmUiObjectHandle>()->updateConnectedEditors();
|
||||
parentObj->uiCapability()->updateConnectedEditors();
|
||||
|
||||
RimView* view = NULL;
|
||||
parentObj->firstAnchestorOrThisOfType(view);
|
||||
@@ -127,7 +127,7 @@ void RicDeleteItemExec::undo()
|
||||
PdmDocument::initAfterReadTraversal(obj);
|
||||
|
||||
listField->uiCapability()->updateConnectedEditors();
|
||||
listField->ownerObject()->capability<caf::PdmUiObjectHandle>()->updateConnectedEditors();
|
||||
listField->ownerObject()->uiCapability()->updateConnectedEditors();
|
||||
|
||||
if (m_notificationCenter) m_notificationCenter->notifyObservers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user