mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#955 Toolbar Button State : Mark calculator button as disabled if no case is open
This commit is contained in:
@@ -54,7 +54,10 @@ void RicShowSummaryCurveCalculatorFeature::hideCurveCalculatorDialog()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicShowSummaryCurveCalculatorFeature::isCommandEnabled()
|
||||
{
|
||||
return true;
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
const auto& allSumCases = proj->allSummaryCases();
|
||||
|
||||
return !allSumCases.empty();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user