mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Move prepareForDelete() to Rim3dView
This commit is contained in:
parent
bfbe557c2d
commit
a2e73d7cee
@ -65,9 +65,6 @@ void RicDeleteItemExec::redo()
|
||||
m_commandData.m_deletedObjectAsXml = xmlObj( obj )->writeObjectToXmlString();
|
||||
}
|
||||
|
||||
// Make sure the object is disconnected from other objects before delete
|
||||
obj->prepareForDelete();
|
||||
|
||||
delete obj;
|
||||
|
||||
listField->erase( m_commandData.m_indexToObject );
|
||||
|
@ -235,6 +235,10 @@ Rim3dView::~Rim3dView()
|
||||
{
|
||||
m_viewer->clearRimView();
|
||||
}
|
||||
|
||||
// Make sure the object is disconnected from other objects before delete
|
||||
prepareForDelete();
|
||||
|
||||
removeMdiWindowFromMdiArea();
|
||||
|
||||
delete m_viewer;
|
||||
|
Loading…
Reference in New Issue
Block a user