mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-06 06:06:57 -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:
1 parent
9df1e48543
commit
ca0fd4d9fe
1 file changed
+4
-2
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user