From a20640f25f7dfdded118db66180a3ed0b0e6ed9f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 10 Apr 2013 15:09:41 +0200 Subject: [PATCH] Only enable animation control when there are more than one time step string available p4#: 21229 --- ApplicationCode/UserInterface/RiuMainWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuMainWindow.cpp b/ApplicationCode/UserInterface/RiuMainWindow.cpp index 2314a57329..07d8e3e145 100644 --- a/ApplicationCode/UserInterface/RiuMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuMainWindow.cpp @@ -580,6 +580,13 @@ void RiuMainWindow::refreshAnimationActions() 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()); }