mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed crash on project close introduced by update of MDI window title with Primary/Controlled
This commit is contained in:
@@ -86,6 +86,9 @@ RimGridView::~RimGridView( void )
|
||||
|
||||
if ( proj && this->isMasterView() )
|
||||
{
|
||||
RimViewLinker* viewLinker = this->assosiatedViewLinker();
|
||||
viewLinker->setMasterView(nullptr);
|
||||
|
||||
delete proj->viewLinkerCollection->viewLinker();
|
||||
proj->viewLinkerCollection->viewLinker = nullptr;
|
||||
|
||||
|
@@ -305,7 +305,8 @@ QString RimViewLinker::displayNameForView( RimGridView* view )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimViewLinker::setMasterView( RimGridView* view )
|
||||
{
|
||||
RimViewController* previousViewController = view->viewController();
|
||||
RimViewController* previousViewController = nullptr;
|
||||
if (view) previousViewController = view->viewController();
|
||||
|
||||
// Remove the view as dependent view
|
||||
if ( previousViewController )
|
||||
|
Reference in New Issue
Block a user