Only enable animation control when there are more than one time step string available

p4#: 21229
This commit is contained in:
Magne Sjaastad 2013-04-10 15:09:41 +02:00
parent 687bc8aecf
commit a20640f25f

View File

@ -580,6 +580,13 @@ void RiuMainWindow::refreshAnimationActions()
timeStepStrings.push_back(tr("Static Property")); timeStepStrings.push_back(tr("Static Property"));
} }
} }
// Animation control is only relevant for more than one time step
if (timeStepStrings.size() < 2)
{
enableAnimControls = false;
}
m_animationToolBar->setFrameRate(app->activeReservoirView()->maximumFrameRate()); m_animationToolBar->setFrameRate(app->activeReservoirView()->maximumFrameRate());
} }