mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix of obscure crash due to results beeing loaded while results are beeing loaded.
Load GeomResults->progressbar->processEvent->slotActiveViewChanged-> refreshAnimActions->hasResult->loadResults->progressbar->assert ...
This commit is contained in:
parent
9df1e48543
commit
ca0fd4d9fe
@ -311,11 +311,13 @@ RigGeoMechCaseData* RimGeoMechResultDefinition::ownerCaseData()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
/// Is the result probably valid and possible to load
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimGeoMechResultDefinition::hasResult()
|
||||
{
|
||||
return ownerCaseData()->femPartResults()->assertResultsLoaded(this->resultAddress());
|
||||
RigFemResultAddress resAddr = this->resultAddress();
|
||||
|
||||
return (resAddr.isValid() && resAddr.fieldName != "None");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user