mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#525) Checking for availability of any case, not necessarily the active case
This commit is contained in:
parent
4a53b318f7
commit
a0c2d7f6b7
@ -27,6 +27,7 @@
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimView.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiaApplication.h"
|
||||
@ -105,8 +106,10 @@ RimWellPath* RicNewWellLogCurveExtractionFeature::selectedWellPath() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicNewWellLogCurveExtractionFeature::caseAvailable() const
|
||||
{
|
||||
RimView* view = RiaApplication::instance()->activeReservoirView();
|
||||
return view ? view->ownerCase() != NULL : false;
|
||||
std::vector<RimCase*> cases;
|
||||
RiaApplication::instance()->project()->allCases(cases);
|
||||
|
||||
return cases.size() > 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user