Fix crash in RiuMainWindow when closing project

This commit is contained in:
Gaute Lindkvist
2020-08-24 13:17:33 +02:00
parent f82b2f73ec
commit 3d6d8d3220

View File

@@ -933,7 +933,7 @@ void RiuMainWindow::refreshAnimationActions()
int currentTimeStepIndex = 0;
bool enableAnimControls = false;
if ( activeView && activeView->viewer() && activeView->viewer()->frameCount() )
if ( activeView && activeView->ownerCase() && activeView->viewer() && activeView->viewer()->frameCount() )
{
enableAnimControls = true;