mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash when closing project due to virtual call inside destructor.
isScaleZEditable called inside destructor of Rim3dView when the deleted view is the active view
This commit is contained in:
parent
42b7bce1ee
commit
f7f3e72700
@ -153,6 +153,11 @@ Rim3dView::Rim3dView( void )
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
Rim3dView::~Rim3dView( void )
|
Rim3dView::~Rim3dView( void )
|
||||||
{
|
{
|
||||||
|
if (RiaApplication::instance()->activeReservoirView() == this)
|
||||||
|
{
|
||||||
|
RiaApplication::instance()->setActiveReservoirView(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
if ( m_viewer )
|
if ( m_viewer )
|
||||||
{
|
{
|
||||||
m_viewer->clearRimView();
|
m_viewer->clearRimView();
|
||||||
|
Loading…
Reference in New Issue
Block a user