mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard against none-existing userDescriptionField in ViewWindow
This commit is contained in:
@@ -159,6 +159,8 @@ void RimViewWindow::fieldChangedByUi(const caf::PdmFieldHandle* changedField, co
|
||||
void RimViewWindow::updateMdiWindowTitle()
|
||||
{
|
||||
if ( viewWidget() )
|
||||
{
|
||||
if ( this->userDescriptionField() )
|
||||
{
|
||||
caf::PdmUiFieldHandle* uiFieldHandle = this->userDescriptionField()->uiCapability();
|
||||
if ( uiFieldHandle )
|
||||
@@ -167,6 +169,7 @@ void RimViewWindow::updateMdiWindowTitle()
|
||||
viewWidget()->setWindowTitle(v.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user