Guard against none-existing userDescriptionField in ViewWindow

This commit is contained in:
Jacob Støren
2017-03-24 15:07:34 +01:00
parent c536b7a8fe
commit 60b104329c

View File

@@ -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());
}
}
}
}
//--------------------------------------------------------------------------------------------------